OSDN Git Service

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 533e4a2..6f3b208 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