comparison src/GvimExt/gvimext.h @ 2224:a0cce15dd2a9 vim73

Fix definition of UINT_PTR for 64 bit systems.
author Bram Moolenaar <bram@vim.org>
date Wed, 26 May 2010 21:42:54 +0200
parents fa7e62dd58d7
children 81cb471657e0
comparison
equal deleted inserted replaced
2223:81b83a19e127 2224:a0cce15dd2a9
42 #include <windows.h> 42 #include <windows.h>
43 #include <windowsx.h> 43 #include <windowsx.h>
44 #include <shlobj.h> 44 #include <shlobj.h>
45 45
46 /* Accommodate old versions of VC that don't have a modern Platform SDK */ 46 /* Accommodate old versions of VC that don't have a modern Platform SDK */
47 #if defined(_MSC_VER) && _MSC_VER < 1300 47 #if (defined(_MSC_VER) && _MSC_VER < 1300) || !defined(MAXULONG_PTR)
48 # undef UINT_PTR 48 # undef UINT_PTR
49 # define UINT_PTR UINT 49 # define UINT_PTR UINT
50 #endif 50 #endif
51 51
52 #define ResultFromShort(i) ResultFromScode(MAKE_SCODE(SEVERITY_SUCCESS, 0, (USHORT)(i))) 52 #define ResultFromShort(i) ResultFromScode(MAKE_SCODE(SEVERITY_SUCCESS, 0, (USHORT)(i)))