summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsg215889 <[email protected]>2009-07-24 14:29:08 -0700
committersg215889 <[email protected]>2009-07-24 14:29:08 -0700
commit0b7a4d59af3ec29740720c4c8d9b249efe06ff5f (patch)
tree9ddaf55c48000c8a6255185136406f16a94e2fb3 /src
parent0906140a18690a9dced8dec12dfdd8cf4c95a4df (diff)
NEWT: Adding KD if building with OpenGL. Fixing build in case no native library is being build. Fixing KD build for non windows.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/newt/native/KDWindow.c28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/newt/native/KDWindow.c b/src/newt/native/KDWindow.c
index 682edff24..8e57237b3 100755
--- a/src/newt/native/KDWindow.c
+++ b/src/newt/native/KDWindow.c
@@ -39,20 +39,24 @@
#include <stdio.h>
#include <string.h>
-/* This typedef is apparently needed for Microsoft compilers before VC8,
- and on Windows CE */
-#if (_MSC_VER < 1400) || defined(UNDER_CE)
- #ifdef _WIN64
- typedef long long intptr_t;
+#ifdef _WIN32
+ /* This typedef is apparently needed for Microsoft compilers before VC8,
+ and on Windows CE */
+ #if (_MSC_VER < 1400) || defined(UNDER_CE)
+ #ifdef _WIN64
+ typedef long long intptr_t;
+ #else
+ typedef int intptr_t;
+ #endif
+ #elif _MSC_VER <= 1500
+ #ifdef _WIN64 // [
+ typedef __int64 intptr_t;
+ #else // _WIN64 ][
+ typedef int intptr_t;
+ #endif // _WIN64 ]
#else
- typedef int intptr_t;
+ #include <inttypes.h>
#endif
-#elif _MSC_VER <= 1500
- #ifdef _WIN64 // [
- typedef __int64 intptr_t;
- #else // _WIN64 ][
- typedef int intptr_t;
- #endif // _WIN64 ]
#else
#include <inttypes.h>
#endif