aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/newt
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2008-09-16 01:22:50 +0000
committerKenneth Russel <[email protected]>2008-09-16 01:22:50 +0000
commited9fb0e76316689e0df5952a1636240b217ea5f6 (patch)
treeac78a45d7d814cdbe9765e85e9eef9af379bf68e /src/native/newt
parentd25261f80e380d87e48db01a3c888a7ca843797b (diff)
Fixes for building with Visual C++ 6.0 (VC98)
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1771 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/native/newt')
-rwxr-xr-xsrc/native/newt/WindowsWindow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/native/newt/WindowsWindow.c b/src/native/newt/WindowsWindow.c
index 6010580a8..854e886b9 100755
--- a/src/native/newt/WindowsWindow.c
+++ b/src/native/newt/WindowsWindow.c
@@ -84,7 +84,7 @@ static LRESULT CALLBACK wndProc(HWND wnd, UINT message,
jobject window = NULL;
BOOL isKeyDown = FALSE;
-#ifdef UNDER_CE
+#if defined(UNDER_CE) || _MSC_VER <= 1200
window = (jobject) GetWindowLong(wnd, GWL_USERDATA);
#else
window = (jobject) GetWindowLongPtr(wnd, GWLP_USERDATA);
@@ -320,7 +320,7 @@ JNIEXPORT jlong JNICALL Java_com_sun_javafx_newt_windows_WindowsWindow_CreateWin
#endif
if (window != NULL) {
-#ifdef UNDER_CE
+#if defined(UNDER_CE) || _MSC_VER <= 1200
SetWindowLong(window, GWL_USERDATA, (intptr_t) (*env)->NewGlobalRef(env, obj));
#else
SetWindowLongPtr(window, GWLP_USERDATA, (intptr_t) (*env)->NewGlobalRef(env, obj));