From 356bbf2bd325380e16fd77d34fffd084dc1c0928 Mon Sep 17 00:00:00 2001 From: Kevin Rushforth Date: Mon, 17 Oct 2005 22:56:23 +0000 Subject: Merged changes from dev-1_4 branch into the main trunk. NOTE: all 1.4 development will now proceed on the main trunk. The dev-1_4 branch is closed. git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@445 ba19aa83-45c5-6ac9-afd3-db810772062c --- src/native/ogl/MasterControl.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/native/ogl/MasterControl.c') diff --git a/src/native/ogl/MasterControl.c b/src/native/ogl/MasterControl.c index 03cb380..a7ce163 100644 --- a/src/native/ogl/MasterControl.c +++ b/src/native/ogl/MasterControl.c @@ -32,7 +32,7 @@ #include #endif /* WIN32 */ -#if defined(SOLARIS) || defined(__linux__) +#if defined(UNIX) #include #ifdef SOLARIS #include @@ -65,7 +65,7 @@ extern Bool XPanoramiXQueryExtension(Display *dpy, int *event_base, int *error_base); #endif /* SOLARIS && __sparc */ -#endif /* SOLARIS || __linux__ */ +#endif /* UNIX_ */ /* defined in Canvas3D.c */ extern int isExtensionSupported(const char *allExtensions, @@ -174,9 +174,9 @@ DWORD countBits(DWORD mask) JNIEXPORT jint JNICALL Java_javax_media_j3d_MasterControl_getNumberOfProcessor (JNIEnv *env, jobject obj) { -#if defined(SOLARIS) || defined(__linux__) +#if defined(UNIX) return sysconf(_SC_NPROCESSORS_ONLN); -#endif /* SOLARIS || __linux__ */ +#endif /* UNIX_ */ #ifdef WIN32 SYSTEM_INFO sysInfo; @@ -205,9 +205,9 @@ Java_javax_media_j3d_MasterControl_getThreadConcurrency(JNIEnv *env, return (jint) thr_getconcurrency(); #endif /* SOLARIS */ -#ifdef __linux__ +#ifdef LINUX return -1; -#endif /* __linux__ */ +#endif /* LINUX */ #ifdef WIN32 return -1; @@ -233,9 +233,9 @@ Java_javax_media_j3d_MasterControl_setThreadConcurrency(JNIEnv *env, /* No-op on windows */ #endif /* WIN32 */ -#ifdef __linux__ +#ifdef LINUX /* No-op on linux */ -#endif /* __linux__ */ +#endif /* LINUX */ } @@ -254,7 +254,7 @@ jint JNICALL Java_javax_media_j3d_MasterControl_getMaximumLights( return 8; #endif /* WIN32 */ -#ifdef __linux__ +#ifdef LINUX return 8; -#endif /* __linux__ */ +#endif /* LINUX */ } -- cgit v1.2.3