summaryrefslogtreecommitdiff
path: root/src/os_win32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-18 20:17:02 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-18 20:17:02 +0200
commit1e1d2e89fa460328883bb09fb13a24e26ef1ab31 (patch)
tree6bc273fc4788e4dafe9fd4b5f31981aa78437177 /src/os_win32.c
parentc33b3216c8ceac84130d627b20cb7034e5f831e6 (diff)
downloadvim-git-1e1d2e89fa460328883bb09fb13a24e26ef1ab31.tar.gz
patch 8.2.0793: MS-Windows: cannot build GUI with small featuresv8.2.0793
Problem: MS-Windows: cannot build GUI with small features. (Michael Soyka) Solution: Add #ifdef around use of windowsVersion. (Ken Takata)
Diffstat (limited to 'src/os_win32.c')
-rw-r--r--src/os_win32.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index edd5cdac4..89c7c5e3a 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -822,7 +822,7 @@ win32_enable_privilege(LPTSTR lpszPrivilege, BOOL bEnable)
#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;