From cacef3866a8aa2668cefb42f16f011d67364a618 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Thu, 7 Sep 2017 13:48:11 -0400 Subject: [PATCH] vc6: use int instead of INT_PTR for callback to DialogBoxParam --- gfx/common/win32_common.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gfx/common/win32_common.c b/gfx/common/win32_common.c index 2c5a7ba569..f4331843da 100644 --- a/gfx/common/win32_common.c +++ b/gfx/common/win32_common.c @@ -117,6 +117,12 @@ typedef REASON_CONTEXT POWER_REQUEST_CONTEXT, *PPOWER_REQUEST_CONTEXT, *LPPOWER_ #define MAX_MONITORS 9 #endif +#if defined(_MSC_VER) && _MSC_VER <= 1200 +#define INT_PTR_COMPAT int +#else +#define INT_PTR_COMPAT INT_PTR +#endif + static HMONITOR win32_monitor_last; static HMONITOR win32_monitor_all[MAX_MONITORS]; static unsigned win32_monitor_count = 0; @@ -131,7 +137,7 @@ void unset_doubleclick_on_titlebar(void) doubleclick_on_titlebar = false; } -BOOL CALLBACK PickCoreProc(HWND hDlg, UINT message, +INT_PTR_COMPAT CALLBACK PickCoreProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { size_t list_size;