aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/ogl/MasterControl.c
diff options
context:
space:
mode:
authorKevin Rushforth <[email protected]>2005-10-17 22:56:23 +0000
committerKevin Rushforth <[email protected]>2005-10-17 22:56:23 +0000
commit356bbf2bd325380e16fd77d34fffd084dc1c0928 (patch)
tree1d67b61e1a427baa49047341ee825bca9b423553 /src/native/ogl/MasterControl.c
parent68449b2071392af151a75f90610026465c426401 (diff)
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
Diffstat (limited to 'src/native/ogl/MasterControl.c')
-rw-r--r--src/native/ogl/MasterControl.c20
1 files changed, 10 insertions, 10 deletions
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 <winbase.h>
#endif /* WIN32 */
-#if defined(SOLARIS) || defined(__linux__)
+#if defined(UNIX)
#include <unistd.h>
#ifdef SOLARIS
#include <thread.h>
@@ -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 */
}