<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>99</bug_id>
          
          <creation_ts>2004-07-23 02:31:59 +0200</creation_ts>
          <short_desc>intptr_t undefined compiling with VS .NET 2003 VC++</short_desc>
          <delta_ts>2010-03-24 07:46:47 +0100</delta_ts>
          <reporter_accessible>0</reporter_accessible>
          <cclist_accessible>0</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>core</component>
          <version>1</version>
          <rep_platform>All</rep_platform>
          <op_sys>windows</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>115</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 07:46:47 +0100</bug_when>
    <thetext>


---- 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 &lt;= 1200
 typedef int intptr_t;
 #endif
#else
 #include &lt;inttypes.h&gt;
#endif

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

Replacing &quot;#if _MSC_VER &lt;= 1200&quot; with &quot;#if _MSC_VER &lt;= 1400&quot; 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&apos;t have a VC7 installation to test with
and since the patch reportedly makes it work with Visual Studio 2003,
I&apos;ll assume it&apos;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
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>