summaryrefslogtreecommitdiffstats
path: root/src/if_ole.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/if_ole.cpp')
-rw-r--r--src/if_ole.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/if_ole.cpp b/src/if_ole.cpp
index fc3077dfe0..1e5eee65a1 100644
--- a/src/if_ole.cpp
+++ b/src/if_ole.cpp
@@ -34,9 +34,10 @@ extern HWND s_hwnd;
extern HWND vim_parent_hwnd;
}
-#if _MSC_VER < 1300
+#if (defined(_MSC_VER) && _MSC_VER < 1300) || !defined(MAXULONG_PTR)
/* Work around old versions of basetsd.h which wrongly declares
* UINT_PTR as unsigned long */
+# undef UINT_PTR
# define UINT_PTR UINT
#endif