forked from aniani/vim
patch 8.2.0793: MS-Windows: cannot build GUI with small features
Problem: MS-Windows: cannot build GUI with small features. (Michael Soyka) Solution: Add #ifdef around use of windowsVersion. (Ken Takata)
This commit is contained in:
@@ -822,7 +822,7 @@ win32_enable_privilege(LPTSTR lpszPrivilege, BOOL bEnable)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set "win8_or_later" and fill in "windowsVersion".
|
* Set "win8_or_later" and fill in "windowsVersion" if possible.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
PlatformId(void)
|
PlatformId(void)
|
||||||
@@ -836,9 +836,10 @@ PlatformId(void)
|
|||||||
ovi.dwOSVersionInfoSize = sizeof(ovi);
|
ovi.dwOSVersionInfoSize = sizeof(ovi);
|
||||||
GetVersionEx(&ovi);
|
GetVersionEx(&ovi);
|
||||||
|
|
||||||
|
#ifdef FEAT_EVAL
|
||||||
vim_snprintf(windowsVersion, sizeof(windowsVersion), "%d.%d",
|
vim_snprintf(windowsVersion, sizeof(windowsVersion), "%d.%d",
|
||||||
(int)ovi.dwMajorVersion, (int)ovi.dwMinorVersion);
|
(int)ovi.dwMajorVersion, (int)ovi.dwMinorVersion);
|
||||||
|
#endif
|
||||||
if ((ovi.dwMajorVersion == 6 && ovi.dwMinorVersion >= 2)
|
if ((ovi.dwMajorVersion == 6 && ovi.dwMinorVersion >= 2)
|
||||||
|| ovi.dwMajorVersion > 6)
|
|| ovi.dwMajorVersion > 6)
|
||||||
win8_or_later = TRUE;
|
win8_or_later = TRUE;
|
||||||
|
@@ -746,6 +746,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 */
|
||||||
|
/**/
|
||||||
|
793,
|
||||||
/**/
|
/**/
|
||||||
792,
|
792,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user