From 396ef5fe91704062c96a7355b241db20ec8007fb Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 10 Jun 2011 21:57:49 +0200 Subject: gluegen stddef/stdint cc header: add missing intptr_t/uintptr_t, proper formating, proper _WIN64 case --- make/stub_includes/platform/gluegen_stdint.h | 43 +++++++++++++++++++--------- 1 file changed, 30 insertions(+), 13 deletions(-) (limited to 'make/stub_includes/platform/gluegen_stdint.h') diff --git a/make/stub_includes/platform/gluegen_stdint.h b/make/stub_includes/platform/gluegen_stdint.h index aabbc86..1dd712b 100644 --- a/make/stub_includes/platform/gluegen_stdint.h +++ b/make/stub_includes/platform/gluegen_stdint.h @@ -9,21 +9,38 @@ #include #elif defined(WIN32) && defined(__GNUC__) #include +#elif defined(_WIN64) + typedef __int32 int32_t; + typedef unsigned __int32 uint32_t; + typedef __int64 int64_t; + typedef unsigned __int64 uint64_t; + + typedef __int64 intptr_t; + typedef unsigned __int64 uintptr_t; #elif defined(_WIN32) - typedef __int32 int32_t; - typedef unsigned __int32 uint32_t; - typedef __int64 int64_t; - typedef unsigned __int64 uint64_t; + typedef __int32 int32_t; + typedef unsigned __int32 uint32_t; + typedef __int64 int64_t; + typedef unsigned __int64 uint64_t; + + typedef __int32 intptr_t; + typedef unsigned __int32 uintptr_t; +#elif defined(__ia64__) || defined(__x86_64__) + typedef signed int int32_t; + typedef unsigned int uint32_t; + typedef signed long int64_t; + typedef unsigned long uint64_t; + + typedef long intptr_t; + typedef unsigned long uintptr_t; #else - typedef signed int int32_t; - typedef unsigned int uint32_t; - #if defined(__ia64__) || defined(__x86_64__) - typedef signed long int int64_t; - typedef unsigned long int uint64_t; - #else - typedef signed long long int int64_t; - typedef unsigned long long int uint64_t; - #endif + typedef signed int int32_t; + typedef unsigned int uint32_t; + typedef signed long long int64_t; + typedef unsigned long long uint64_t; + + typedef int intptr_t; + typedef unsigned int uintptr_t; #endif #endif /* __gluegen_stdint_h */ -- cgit v1.2.3