summaryrefslogtreecommitdiffstats
path: root/src/native/common/Platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/native/common/Platform.c')
-rw-r--r--src/native/common/Platform.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/native/common/Platform.c b/src/native/common/Platform.c
deleted file mode 100644
index c385e12..0000000
--- a/src/native/common/Platform.c
+++ /dev/null
@@ -1,29 +0,0 @@
-
-#include <jni.h>
-
-#include <assert.h>
-
-#include "com_jogamp_common_os_Platform.h"
-
-#if defined(_WIN32)
- #include <windows.h>
-#else /* assume POSIX sysconf() availability */
- #include <unistd.h>
-#endif
-
-JNIEXPORT jint JNICALL
-Java_com_jogamp_common_os_Platform_getPointerSizeInBitsImpl(JNIEnv *env, jclass _unused) {
- return sizeof(void *) * 8;
-}
-
-JNIEXPORT jlong JNICALL
-Java_com_jogamp_common_os_Platform_getPageSizeImpl(JNIEnv *env, jclass _unused) {
-#if defined(_WIN32)
- SYSTEM_INFO si;
- GetSystemInfo(&si);
- return (jlong) si.dwPageSize;
-#else
- return (jlong) sysconf(_SC_PAGESIZE);
-#endif
-}
-