From 2138fc787c1e497be7f373aa68b3f751c955008f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 29 Mar 2010 04:24:20 +0200 Subject: New Int64Buffer type, which is being used for gluegen 'long *' --- make/stub_includes/common/gluegenint.h | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 make/stub_includes/common/gluegenint.h (limited to 'make/stub_includes/common') 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 + #elif defined(__sun__) + #include + #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 + #elif defined(__SCO__) || defined(__USLC__) + #include + #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 + #elif defined(_WIN32) + typedef __int32 int32_t; + typedef unsigned __int32 uint32_t; + typedef __int64 int64_t; + typedef unsigned __int64 uint64_t; + #else + #include /* Fallback option */ + #endif +#endif + +#endif /* __gluegen_int_h_ */ -- cgit v1.2.3