# HG changeset patch # User Bram Moolenaar # Date 1589826603 -7200 # Node ID af8feeaf167a416ed4de0ba0eef7bd500260b69f # Parent af956fb2230d6a358c441c8da0f2d0e95d07612d patch 8.2.0793: MS-Windows: cannot build GUI with small features Commit: https://github.com/vim/vim/commit/1e1d2e89fa460328883bb09fb13a24e26ef1ab31 Author: Bram Moolenaar Date: Mon May 18 20:17:02 2020 +0200 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) diff --git a/src/os_win32.c b/src/os_win32.c --- a/src/os_win32.c +++ b/src/os_win32.c @@ -822,7 +822,7 @@ win32_enable_privilege(LPTSTR lpszPrivil #endif /* - * Set "win8_or_later" and fill in "windowsVersion". + * Set "win8_or_later" and fill in "windowsVersion" if possible. */ void PlatformId(void) @@ -836,9 +836,10 @@ PlatformId(void) ovi.dwOSVersionInfoSize = sizeof(ovi); GetVersionEx(&ovi); +#ifdef FEAT_EVAL vim_snprintf(windowsVersion, sizeof(windowsVersion), "%d.%d", (int)ovi.dwMajorVersion, (int)ovi.dwMinorVersion); - +#endif if ((ovi.dwMajorVersion == 6 && ovi.dwMinorVersion >= 2) || ovi.dwMajorVersion > 6) win8_or_later = TRUE; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 793, +/**/ 792, /**/ 791,