Skip to content
Snippets Groups Projects
Commit 167632fc authored by Bram Moolenaar's avatar Bram Moolenaar
Browse files

Fix definition of UINT_PTR for 64 bit systems.

parent 6a18eb6f
No related merge requests found
...@@ -36,6 +36,10 @@ to not run autocommands when leaving Vim? (James Vega, 2010 May 23) ...@@ -36,6 +36,10 @@ to not run autocommands when leaving Vim? (James Vega, 2010 May 23)
Invalid memory access when deleting funcref variable. Patch by Lech Lorens, Invalid memory access when deleting funcref variable. Patch by Lech Lorens,
2010 May 25. 2010 May 25.
Fixes for broken URLs:
Benjamin Haskell, 2010 May 25
Christian Brabandt, 2010 May 26, two messages
Cursor positioning wrong with 0x200e character. (John Becket, 2010 May 6) Cursor positioning wrong with 0x200e character. (John Becket, 2010 May 6)
E315 when trying to change a file in FileChangedRO autocommand event. E315 when trying to change a file in FileChangedRO autocommand event.
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
#include <shlobj.h> #include <shlobj.h>
/* Accommodate old versions of VC that don't have a modern Platform SDK */ /* Accommodate old versions of VC that don't have a modern Platform SDK */
#if defined(_MSC_VER) && _MSC_VER < 1300 #if (defined(_MSC_VER) && _MSC_VER < 1300) || !defined(MAXULONG_PTR)
# undef UINT_PTR # undef UINT_PTR
# define UINT_PTR UINT # define UINT_PTR UINT
#endif #endif
......
...@@ -183,9 +183,10 @@ ...@@ -183,9 +183,10 @@
# define ID_BEVAL_TOOLTIP 200 # define ID_BEVAL_TOOLTIP 200
# define BEVAL_TEXT_LEN MAXPATHL # define BEVAL_TEXT_LEN MAXPATHL
#if _MSC_VER < 1300 || !defined(UINT_PTR) #if (defined(_MSC_VER) && _MSC_VER < 1300) || !defined(MAXULONG_PTR)
/* Work around old versions of basetsd.h which wrongly declares /* Work around old versions of basetsd.h which wrongly declares
* UINT_PTR as unsigned long. */ * UINT_PTR as unsigned long. */
# undef UINT_PTR
# define UINT_PTR UINT # define UINT_PTR UINT
#endif #endif
...@@ -4697,7 +4698,7 @@ gui_mch_enable_beval_area(beval) ...@@ -4697,7 +4698,7 @@ gui_mch_enable_beval_area(beval)
if (beval == NULL) if (beval == NULL)
return; return;
// TRACE0("gui_mch_enable_beval_area {{{"); // TRACE0("gui_mch_enable_beval_area {{{");
BevalTimerId = SetTimer(s_textArea, 0, p_bdlay / 2, BevalTimerProc); BevalTimerId = SetTimer(s_textArea, 0, (UINT)(p_bdlay / 2), BevalTimerProc);
// TRACE0("gui_mch_enable_beval_area }}}"); // TRACE0("gui_mch_enable_beval_area }}}");
} }
......
...@@ -34,9 +34,10 @@ extern HWND s_hwnd; ...@@ -34,9 +34,10 @@ extern HWND s_hwnd;
extern HWND vim_parent_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 /* Work around old versions of basetsd.h which wrongly declares
* UINT_PTR as unsigned long */ * UINT_PTR as unsigned long */
# undef UINT_PTR
# define UINT_PTR UINT # define UINT_PTR UINT
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment