From c9897c55e0e3a7e010b388bf87bb26a1ba46764f Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 23 May 2016 04:46:14 +0000 Subject: [PATCH] KenBuild, SW: Fix Win32 startup window warnings. git-svn-id: https://svn.eduke32.com/eduke32@5734 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/sw/src/startwin.game.c | 4 +++- polymer/eduke32/source/testgame/src/startwin.game.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/sw/src/startwin.game.c b/polymer/eduke32/source/sw/src/startwin.game.c index 024f2f599..394b6f768 100644 --- a/polymer/eduke32/source/sw/src/startwin.game.c +++ b/polymer/eduke32/source/sw/src/startwin.game.c @@ -16,7 +16,9 @@ #define WIN32_LEAN_AND_MEAN #include #include +#ifndef _WIN32_IE #define _WIN32_IE 0x0300 +#endif #include #include @@ -466,7 +468,7 @@ static INT_PTR CALLBACK startup_dlgproc(HWND hwndDlg, UINT uMsg, WPARAM wParam, case WM_CTLCOLORSTATIC: if ((HWND)lParam == pages[TAB_MESSAGES]) - return (BOOL)GetSysColorBrush(COLOR_WINDOW); + return (BOOL)(intptr_t)GetSysColorBrush(COLOR_WINDOW); break; default: break; diff --git a/polymer/eduke32/source/testgame/src/startwin.game.c b/polymer/eduke32/source/testgame/src/startwin.game.c index 5ea8e8bd0..a234aafb1 100644 --- a/polymer/eduke32/source/testgame/src/startwin.game.c +++ b/polymer/eduke32/source/testgame/src/startwin.game.c @@ -9,7 +9,9 @@ #define WIN32_LEAN_AND_MEAN #include #include +#ifndef _WIN32_IE #define _WIN32_IE 0x0600 +#endif #include #include @@ -296,7 +298,7 @@ static INT_PTR CALLBACK startup_dlgproc(HWND hwndDlg, UINT uMsg, WPARAM wParam, case WM_CTLCOLORSTATIC: if ((HWND)lParam == pages[TAB_MESSAGES]) - return (BOOL)GetSysColorBrush(COLOR_WINDOW); + return (BOOL)(intptr_t)GetSysColorBrush(COLOR_WINDOW); break; default: break;