]> granicus.if.org Git - vim/commitdiff
patch 8.2.0793: MS-Windows: cannot build GUI with small features v8.2.0793
authorBram Moolenaar <Bram@vim.org>
Mon, 18 May 2020 18:17:02 +0000 (20:17 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 18 May 2020 18:17:02 +0000 (20:17 +0200)
Problem:    MS-Windows: cannot build GUI with small features. (Michael Soyka)
Solution:   Add #ifdef around use of windowsVersion. (Ken Takata)

src/os_win32.c
src/version.c

index edd5cdac4e716a70bcb899423aea38e0c5d2c602..89c7c5e3aaa9bb0e09960923ed3b93d164173050 100644 (file)
@@ -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;
index 14eca5f6a21589d9a792219fa2efcdd4270ecc44..055a4180edc9b4c5e2d12ddfa49e4c682b198d85 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    793,
 /**/
     792,
 /**/