summaryrefslogtreecommitdiff
path: root/src/os_mswin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r--src/os_mswin.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c
index 28f2f086c..b2eee923c 100644
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -1728,8 +1728,15 @@ swap_me(COLORREF colorref)
return colorref;
}
+/* Attempt to make this work for old and new compilers */
+#if _MSC_VER < 1300
+# define PDP_RETVAL BOOL
+#else
+# define PDP_RETVAL INT_PTR
+#endif
+
/*ARGSUSED*/
- static BOOL CALLBACK
+ static PDP_RETVAL CALLBACK
PrintDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
#ifdef FEAT_GETTEXT