diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT OpenGL')
3 files changed, 9 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/carbon/library/agl.c b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/carbon/library/agl.c index 600b28e77e..1ec2523157 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/carbon/library/agl.c +++ b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/carbon/library/agl.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2008 IBM Corporation and others. + * Copyright (c) 2000, 2012 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -13,7 +13,9 @@ #include "agl_structs.h" #include "agl_stats.h" +#ifndef AGL_NATIVE #define AGL_NATIVE(func) Java_org_eclipse_swt_internal_opengl_carbon_AGL_##func +#endif #ifndef NO_aglChoosePixelFormat JNIEXPORT jint JNICALL AGL_NATIVE(aglChoosePixelFormat) diff --git a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/glx/library/glx.c b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/glx/library/glx.c index 7adc742281..80e4ef268b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/glx/library/glx.c +++ b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/glx/library/glx.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2008 IBM Corporation and others. + * Copyright (c) 2000, 2012 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -13,7 +13,9 @@ #include "glx_structs.h" #include "glx_stats.h" +#ifndef GLX_NATIVE #define GLX_NATIVE(func) Java_org_eclipse_swt_internal_opengl_glx_GLX_##func +#endif #ifndef NO_XVisualInfo_1sizeof JNIEXPORT jint JNICALL GLX_NATIVE(XVisualInfo_1sizeof) diff --git a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/library/wgl.c b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/library/wgl.c index 85eed92707..77a87cc421 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/library/wgl.c +++ b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/win32/library/wgl.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2008 IBM Corporation and others. + * Copyright (c) 2000, 2012 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -13,7 +13,9 @@ #include "wgl_structs.h" #include "wgl_stats.h" +#ifndef WGL_NATIVE #define WGL_NATIVE(func) Java_org_eclipse_swt_internal_opengl_win32_WGL_##func +#endif #ifndef NO_ChoosePixelFormat JNIEXPORT jint JNICALL WGL_NATIVE(ChoosePixelFormat) |