From 167632fcddd32656a737fa5568504fff12d04f70 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 26 May 2010 21:42:54 +0200 Subject: Fix definition of UINT_PTR for 64 bit systems. --- src/if_ole.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/if_ole.cpp') 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 -- cgit v1.2.3