diff options
Diffstat (limited to 'make/config/intptr.cfg')
-rw-r--r-- | make/config/intptr.cfg | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/make/config/intptr.cfg b/make/config/intptr.cfg new file mode 100644 index 000000000..c946e4851 --- /dev/null +++ b/make/config/intptr.cfg @@ -0,0 +1,17 @@ +CustomCCode #ifdef _WIN32 +CustomCCode #ifdef _MSC_VER +CustomCCode /* This typedef is apparently needed for Microsoft compilers before VC8, +CustomCCode and on Windows CE */ +CustomCCode #if (_MSC_VER < 1400) || defined(UNDER_CE) +CustomCCode #ifdef _WIN64 +CustomCCode typedef long long intptr_t; +CustomCCode #else +CustomCCode typedef int intptr_t; +CustomCCode #endif +CustomCCode #endif +CustomCCode #else +CustomCCode #include <inttypes.h> +CustomCCode #endif +CustomCCode #else +CustomCCode #include <inttypes.h> +CustomCCode #endif |