Bug 99

Summary: intptr_t undefined compiling with VS .NET 2003 VC++
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P5    
Version: 1   
Hardware: All   
OS: windows   
Type: DEFECT SCM Refs:
Workaround: ---

Description Sven Gothel 2010-03-24 07:46:47 CET


---- Reported by daymark 2004-07-23 02:31:59 ----

Compile error building jogl 1.1b04 with ant using VC++ supplied with 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

Looks like inttypes.h is not provided with Visual Studio .NET 2003.

Replacing "#if _MSC_VER <= 1200" with "#if _MSC_VER <= 1400" everywhere solved
it for me.



---- Additional Comments From kbr 2005-01-31 00:36:46 ----

Thanks for the patch. I am not convinced it is correct because
we definitely needed that #if clause in order to make JOGL compile
with VC7. However, since I don't have a VC7 installation to test with
and since the patch reportedly makes it work with Visual Studio 2003,
I'll assume it's correct.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:46 EDT  ---

This bug was previously known as _bug_ 99 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=99