summaryrefslogtreecommitdiffstats
path: root/make/stub_includes/common
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-03-29 04:24:20 +0200
committerSven Gothel <[email protected]>2010-03-29 04:24:20 +0200
commit2138fc787c1e497be7f373aa68b3f751c955008f (patch)
treed4b1a1dc63602bef8073e70d709faa2821b5dddd /make/stub_includes/common
parentca2ccb29bd3cd4d9c73ca96ce02402888ac9e9af (diff)
New Int64Buffer type, which is being used for gluegen 'long *'
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_ */