From 6f6d6510a3d72c9c736c69331e89004f685567b1 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Wed, 17 Jun 2009 12:27:19 +0000 Subject: Fixed more non-C syntax causing breakage with Solaris compiler git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1974 232f8b59-042b-4e1e-8c03-345bb8c30851 --- make/config/nativewindow/x11-CustomCCode.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'make/config/nativewindow') diff --git a/make/config/nativewindow/x11-CustomCCode.c b/make/config/nativewindow/x11-CustomCCode.c index cb5ab8ced..c1f66fee1 100755 --- a/make/config/nativewindow/x11-CustomCCode.c +++ b/make/config/nativewindow/x11-CustomCCode.c @@ -140,6 +140,8 @@ Java_com_sun_nativewindow_impl_x11_X11Lib_XGetVisualInfoCopied1__JJLjava_nio_Byt int * _ptr3 = NULL; XVisualInfo * _res; int count; + jobject jbyteSource; + jobject jbyteCopy; if (arg2 != NULL) { _ptr2 = (XVisualInfo *) (((char*) (*env)->GetDirectBufferAddress(env, arg2)) + 0); } @@ -155,9 +157,9 @@ Java_com_sun_nativewindow_impl_x11_X11Lib_XGetVisualInfoCopied1__JJLjava_nio_Byt _initClazzAccess(env); - jobject jbyteSource = (*env)->NewDirectByteBuffer(env, _res, count * sizeof(XVisualInfo)); - jobject jbyteCopy = (*env)->CallStaticObjectMethod(env, - clazzInternalBufferUtil, cstrInternalBufferUtil, jbyteSource); + jbyteSource = (*env)->NewDirectByteBuffer(env, _res, count * sizeof(XVisualInfo)); + jbyteCopy = (*env)->CallStaticObjectMethod(env, + clazzInternalBufferUtil, cstrInternalBufferUtil, jbyteSource); // FIXME: remove reference/gc jbyteSource ?? XFree(_res); -- cgit v1.2.3