Mercurial > vim
changeset 2943:be6b65096362 v7.3.244
updated for version 7.3.244
Problem: MS-Windows: Build problem with old compiler. (John Beckett)
Solution: Only use HandleToLong() when available. (Mike Williams)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 07 Jul 2011 17:43:41 +0200 |
parents | 8c36cfcf3e85 |
children | d1842e5ea9b6 |
files | src/gui_w32.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -1574,6 +1574,10 @@ gui_mch_init(void) #endif #ifdef FEAT_EVAL +# if _MSC_VER < 1400 +/* HandleToLong() only exists in compilers that can do 64 bit builds */ +# define HandleToLong(h) ((long)(h)) +# endif /* set the v:windowid variable */ set_vim_var_nr(VV_WINDOWID, HandleToLong(s_hwnd)); #endif