summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlair Sadewitz <blair.sadewitz@gmail.com>2008-07-15 17:06:17 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-07-15 17:06:17 -0600
commite6218d071db46cbf98486f97b238cccf78c4aefa (patch)
tree0a284355e9fad3fb607bd20b6bd00825bf8129aa
parent546c7fb221e2d0b7e56fb390f6e911a5f515328c (diff)
mesa: check for __INTERIX to typedef uintptr_t
-rw-r--r--src/mesa/main/glheader.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/glheader.h b/src/mesa/main/glheader.h
index 533e4a2bd8..6f3b2089c3 100644
--- a/src/mesa/main/glheader.h
+++ b/src/mesa/main/glheader.h
@@ -72,6 +72,12 @@
# 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