mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
@@ -1769,9 +1769,11 @@ gui_mch_init(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef FEAT_EVAL
|
#ifdef FEAT_EVAL
|
||||||
|
# if !defined(_MSC_VER) || (_MSC_VER < 1400)
|
||||||
|
/* Define HandleToLong for old MS and non-MS compilers if not defined. */
|
||||||
# ifndef HandleToLong
|
# ifndef HandleToLong
|
||||||
/* HandleToLong() only exists in compilers that can do 64 bit builds */
|
|
||||||
# define HandleToLong(h) ((long)(h))
|
# define HandleToLong(h) ((long)(h))
|
||||||
|
# endif
|
||||||
# endif
|
# endif
|
||||||
/* set the v:windowid variable */
|
/* set the v:windowid variable */
|
||||||
set_vim_var_nr(VV_WINDOWID, HandleToLong(s_hwnd));
|
set_vim_var_nr(VV_WINDOWID, HandleToLong(s_hwnd));
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1080,
|
||||||
/**/
|
/**/
|
||||||
1079,
|
1079,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user