comparison src/gui_w32.c @ 7560:fb84355cd972 v7.4.1080

commit https://github.com/vim/vim/commit/f32c5cd6e0e6aa6d4aeacb6bf52e3d3ba21e5201 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 10 16:07:44 2016 +0100 patch 7.4.1080 Problem: VS2015 has a function HandleToLong() that is shadowed by the macro that Vim defines. Solution: Do not define HandleToLong() for MSVC version 1400 and later. (Mike Williams)
author Christian Brabandt <cb@256bit.org>
date Sun, 10 Jan 2016 16:15:05 +0100
parents 861a44fc5183
children 6069f43cea4e
comparison
equal deleted inserted replaced
7559:7619dd2089da 7560:fb84355cd972
1767 s_findrep_struct_w.wReplaceWithLen = MSWIN_FR_BUFSIZE; 1767 s_findrep_struct_w.wReplaceWithLen = MSWIN_FR_BUFSIZE;
1768 # endif 1768 # endif
1769 #endif 1769 #endif
1770 1770
1771 #ifdef FEAT_EVAL 1771 #ifdef FEAT_EVAL
1772 # ifndef HandleToLong 1772 # if !defined(_MSC_VER) || (_MSC_VER < 1400)
1773 /* HandleToLong() only exists in compilers that can do 64 bit builds */ 1773 /* Define HandleToLong for old MS and non-MS compilers if not defined. */
1774 # define HandleToLong(h) ((long)(h)) 1774 # ifndef HandleToLong
1775 # define HandleToLong(h) ((long)(h))
1776 # endif
1775 # endif 1777 # endif
1776 /* set the v:windowid variable */ 1778 /* set the v:windowid variable */
1777 set_vim_var_nr(VV_WINDOWID, HandleToLong(s_hwnd)); 1779 set_vim_var_nr(VV_WINDOWID, HandleToLong(s_hwnd));
1778 #endif 1780 #endif
1779 1781