Mercurial > vim
comparison src/gui_w32.c @ 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 | 46544d3ae7ec |
children | 125c7bf52271 |
comparison
equal
deleted
inserted
replaced
2942:8c36cfcf3e85 | 2943:be6b65096362 |
---|---|
1572 s_findrep_struct_w.wReplaceWithLen = MSWIN_FR_BUFSIZE; | 1572 s_findrep_struct_w.wReplaceWithLen = MSWIN_FR_BUFSIZE; |
1573 # endif | 1573 # endif |
1574 #endif | 1574 #endif |
1575 | 1575 |
1576 #ifdef FEAT_EVAL | 1576 #ifdef FEAT_EVAL |
1577 # if _MSC_VER < 1400 | |
1578 /* HandleToLong() only exists in compilers that can do 64 bit builds */ | |
1579 # define HandleToLong(h) ((long)(h)) | |
1580 # endif | |
1577 /* set the v:windowid variable */ | 1581 /* set the v:windowid variable */ |
1578 set_vim_var_nr(VV_WINDOWID, HandleToLong(s_hwnd)); | 1582 set_vim_var_nr(VV_WINDOWID, HandleToLong(s_hwnd)); |
1579 #endif | 1583 #endif |
1580 | 1584 |
1581 theend: | 1585 theend: |