diff options
Diffstat (limited to 'src/jogl/native')
-rw-r--r-- | src/jogl/native/GLXGetProcAddressARB.c (renamed from src/jogl/native/InternalBufferUtils.c) | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/src/jogl/native/InternalBufferUtils.c b/src/jogl/native/GLXGetProcAddressARB.c index 4b2001a34..6e9f6c3c2 100644 --- a/src/jogl/native/InternalBufferUtils.c +++ b/src/jogl/native/GLXGetProcAddressARB.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved. + * Copyright (c) 2003-2009 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -37,31 +37,6 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -#include <jni.h> - -#ifdef _WIN32 - #ifdef _MSC_VER - /* This typedef is apparently needed for Microsoft compilers before VC8, - and on Windows CE */ - #if (_MSC_VER < 1400) || defined(UNDER_CE) - #ifdef _WIN64 - typedef long long intptr_t; - #else - typedef int intptr_t; - #endif - #endif - #else - #include <inttypes.h> - #endif -#else - #include <inttypes.h> -#endif - -JNIEXPORT jobject JNICALL -Java_com_sun_opengl_impl_InternalBufferUtils_newDirectByteBuffer(JNIEnv* env, jclass unused, jlong address, jint capacity) { - return (*env)->NewDirectByteBuffer(env, (void*) (intptr_t) address, capacity); -} - #if defined(__sun) || defined(_HPUX) #include <dlfcn.h> |