summaryrefslogtreecommitdiffstats
path: root/make/stub_includes/common
diff options
context:
space:
mode:
Diffstat (limited to 'make/stub_includes/common')
-rw-r--r--make/stub_includes/common/gluegenint.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/make/stub_includes/common/gluegenint.h b/make/stub_includes/common/gluegenint.h
new file mode 100644
index 0000000..5fb4002
--- /dev/null
+++ b/make/stub_includes/common/gluegenint.h
@@ -0,0 +1,42 @@
+#ifndef __gluegen_int_h_
+#define __gluegen_int_h_
+
+#ifndef GLUEGEN_INT_TYPES_DEFINED
+ #define GLUEGEN_INT_TYPES_DEFINED
+ /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
+ /* (as used in the GL_EXT_timer_query extension). */
+ #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+ #include <inttypes.h>
+ #elif defined(__sun__)
+ #include <inttypes.h>
+ #if defined(__STDC__)
+ #if defined(__arch64__)
+ typedef long int int64_t;
+ typedef unsigned long int uint64_t;
+ #else
+ typedef long long int int64_t;
+ typedef unsigned long long int uint64_t;
+ #endif /* __arch64__ */
+ #endif /* __STDC__ */
+ #elif defined( __VMS )
+ #include <inttypes.h>
+ #elif defined(__SCO__) || defined(__USLC__)
+ #include <stdint.h>
+ #elif defined(__UNIXOS2__) || defined(__SOL64__)
+ typedef long int int32_t;
+ typedef unsigned long int uint32_t;
+ typedef long long int int64_t;
+ typedef unsigned long long int uint64_t;
+ #elif defined(WIN32) && defined(__GNUC__)
+ #include <stdint.h>
+ #elif defined(_WIN32)
+ typedef __int32 int32_t;
+ typedef unsigned __int32 uint32_t;
+ typedef __int64 int64_t;
+ typedef unsigned __int64 uint64_t;
+ #else
+ #include <inttypes.h> /* Fallback option */
+ #endif
+#endif
+
+#endif /* __gluegen_int_h_ */