mesa: check for __INTERIX to typedef uintptr_t
authorBlair Sadewitz <blair.sadewitz@gmail.com>
Tue, 15 Jul 2008 23:06:17 +0000 (17:06 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 15 Jul 2008 23:06:17 +0000 (17:06 -0600)
src/mesa/main/glheader.h

index 533e4a2bd8da2798ba9e932c53c067e14264fd03..6f3b2089c33e41a390f15403a2530fd35e1f95ac 100644 (file)
 #  if _MSC_VER == 1200
      typedef UINT_PTR uintptr_t;
 #  endif 
+#elif defined(__INTERIX)
+/* Interix 3.x has a gcc that shadows this. */
+#  ifndef _UINTPTR_T_DEFINED
+     typedef unsigned long uintptr_t;
+#  define _UINTPTR_T_DEFINED
+#  endif
 #else
 #  include <inttypes.h>
 #endif