Prob building jogl with VC++ v13

I just tried to build jogl 1.1b04 from scratch with Ant using VC++ from Visual Studio .NET 2003. VC++ is version 13.10.3077.

It complains that intptr_t is not defined in BufferUtils.c:

#ifdef _MSC_VER
 /* This typedef is only needed for VC6 */
 #if _MSC_VER <= 1200
 typedef int intptr_t;
 #endif
#else
 #include <inttypes.h>
#endif

JNIEXPORT jobject JNICALL
Java_net_java_games_jogl_util_BufferUtils_bufferOffset0(JNIEnv* env, jclass unused, jint offset) {
  return (*env)->NewDirectByteBuffer(env, (void*) (intptr_t) offset, 0);
}

Seems its not just versions <= 1200 which need intptr_t to be defined. Replacing #if _MSC_VER <= 1200 with #if _MSC_VER <= 1400 everywhere cured the prob.

David

I’m pretty sure I remember building with Visual C++ 7.0 a while back and finding that it had an inttypes.h which had that typedef. I hope that it wasn’t removed again in later VC++ builds. Anyway, please file a low-priority issue on the JOGL web page to track this. Thanks.