aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/native
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-06-05 03:48:58 +0000
committerSven Gothel <[email protected]>2009-06-05 03:48:58 +0000
commitde20e7830781385eb98b90e2bd223509bc699761 (patch)
tree34e05e783d7b48b77700b1d70dd131d6d14b8afc /src/newt/native
parent886dc3ffa4f55d1f37cf22cb4167aedf3bf8f69b (diff)
Fix/Clean EGL path; Adding Windows AWT path; Windows works with MinGW (GL2)
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1925 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/newt/native')
-rwxr-xr-xsrc/newt/native/WindowsWindow.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/newt/native/WindowsWindow.c b/src/newt/native/WindowsWindow.c
index f76fdf46f..fec3f8c0d 100755
--- a/src/newt/native/WindowsWindow.c
+++ b/src/newt/native/WindowsWindow.c
@@ -43,11 +43,24 @@
/* 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 _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
+
+#ifdef _MSC_VER <= 1500
+ // FIXME: Determine for which MSVC versions ..
+ #define strdup(s) _strdup(s)
#endif
#ifndef WM_MOUSEWHEEL