diff options
author | Kenneth Russel <[email protected]> | 2009-06-17 12:22:25 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2009-06-17 12:22:25 +0000 |
commit | 5b4ac90c2fae91a84320a9dd596b5be7280cca14 (patch) | |
tree | a9d898f66a925d8172e4a2652f1ea22f0df12df1 /make/config/nativewindow/x11-CustomCCode.c | |
parent | c03551da9b6dadf6a757b7a6dac0fc3667c28e29 (diff) |
Fixed non-C syntax causing breakage with Solaris compiler
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1973 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/config/nativewindow/x11-CustomCCode.c')
-rwxr-xr-x | make/config/nativewindow/x11-CustomCCode.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/make/config/nativewindow/x11-CustomCCode.c b/make/config/nativewindow/x11-CustomCCode.c index e24e0cd1c..cb5ab8ced 100755 --- a/make/config/nativewindow/x11-CustomCCode.c +++ b/make/config/nativewindow/x11-CustomCCode.c @@ -94,9 +94,11 @@ static jmethodID cstrInternalBufferUtil = NULL; static jclass clazzByteBuffer = NULL; static void _initClazzAccess(JNIEnv *env) { + jclass c; + if(NULL!=cstrInternalBufferUtil) return ; - jclass c = (*env)->FindClass(env, clazzNameInternalBufferUtil); + c = (*env)->FindClass(env, clazzNameInternalBufferUtil); if(NULL==c) { fprintf(stderr, "FatalError: Java_com_sun_nativewindow_impl_x11_X11Lib: can't find %s\n", clazzNameInternalBufferUtil); (*env)->FatalError(env, clazzNameInternalBufferUtil); |