diff options
author | Kenneth Russel <[email protected]> | 2009-06-17 12:27:19 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2009-06-17 12:27:19 +0000 |
commit | 6f6d6510a3d72c9c736c69331e89004f685567b1 (patch) | |
tree | da1669ae94a9d175b0368d836cefeb0fe5069ee2 /make/config/nativewindow | |
parent | 5b4ac90c2fae91a84320a9dd596b5be7280cca14 (diff) |
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
Diffstat (limited to 'make/config/nativewindow')
-rwxr-xr-x | make/config/nativewindow/x11-CustomCCode.c | 8 |
1 files changed, 5 insertions, 3 deletions
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); |