From 5b4ac90c2fae91a84320a9dd596b5be7280cca14 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Wed, 17 Jun 2009 12:22:25 +0000 Subject: 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 --- make/config/nativewindow/x11-CustomCCode.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'make/config/nativewindow') 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); -- cgit v1.2.3