Bug 99 - intptr_t undefined compiling with VS .NET 2003 VC++
Summary: intptr_t undefined compiling with VS .NET 2003 VC++
Status: VERIFIED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All windows
: P5 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2004-07-23 02:31 CEST by Sven Gothel
Modified: 2010-03-24 07:46 CET (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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