diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/newt/native/WindowsWindow.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newt/native/WindowsWindow.c b/src/newt/native/WindowsWindow.c index f609de08d..52bc03018 100755 --- a/src/newt/native/WindowsWindow.c +++ b/src/newt/native/WindowsWindow.c @@ -626,9 +626,9 @@ static LRESULT CALLBACK wndProc(HWND wnd, UINT message, case WM_DESTROY: { #if defined(UNDER_CE) || _MSC_VER <= 1200 - SetWindowLong(wnd, GWL_USERDATA, NULL); + SetWindowLong(wnd, GWL_USERDATA, (intptr_t) NULL); #else - SetWindowLongPtr(wnd, GWLP_USERDATA, NULL); + SetWindowLongPtr(wnd, GWLP_USERDATA, (intptr_t) NULL); #endif free(wud); wud=NULL; (*env)->CallVoidMethod(env, window, windowDestroyedID); @@ -993,7 +993,7 @@ JNIEXPORT jlong JNICALL Java_com_sun_javafx_newt_windows_WindowsWindow_MonitorFr #if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410 || WINVER >= 0x0500) && !defined(_WIN32_WCE) return (jlong)MonitorFromWindow((HWND)window, MONITOR_DEFAULTTOPRIMARY); #else - #warning NO MULTI MONITOR SUPPORT + #warn NO MULTI MONITOR SUPPORT return 0; #endif } |