Mercurial > vim
comparison src/os_win32.c @ 20478:af8feeaf167a v8.2.0793
patch 8.2.0793: MS-Windows: cannot build GUI with small features
Commit: https://github.com/vim/vim/commit/1e1d2e89fa460328883bb09fb13a24e26ef1ab31
Author: Bram Moolenaar <Bram@vim.org>
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 18 May 2020 20:30:03 +0200 |
parents | d4b2a8675b78 |
children | ecaceb5c5644 |
comparison
equal
deleted
inserted
replaced
20477:af956fb2230d | 20478:af8feeaf167a |
---|---|
820 return bResult && GetLastError() == ERROR_SUCCESS; | 820 return bResult && GetLastError() == ERROR_SUCCESS; |
821 } | 821 } |
822 #endif | 822 #endif |
823 | 823 |
824 /* | 824 /* |
825 * Set "win8_or_later" and fill in "windowsVersion". | 825 * Set "win8_or_later" and fill in "windowsVersion" if possible. |
826 */ | 826 */ |
827 void | 827 void |
828 PlatformId(void) | 828 PlatformId(void) |
829 { | 829 { |
830 static int done = FALSE; | 830 static int done = FALSE; |
834 OSVERSIONINFO ovi; | 834 OSVERSIONINFO ovi; |
835 | 835 |
836 ovi.dwOSVersionInfoSize = sizeof(ovi); | 836 ovi.dwOSVersionInfoSize = sizeof(ovi); |
837 GetVersionEx(&ovi); | 837 GetVersionEx(&ovi); |
838 | 838 |
839 #ifdef FEAT_EVAL | |
839 vim_snprintf(windowsVersion, sizeof(windowsVersion), "%d.%d", | 840 vim_snprintf(windowsVersion, sizeof(windowsVersion), "%d.%d", |
840 (int)ovi.dwMajorVersion, (int)ovi.dwMinorVersion); | 841 (int)ovi.dwMajorVersion, (int)ovi.dwMinorVersion); |
841 | 842 #endif |
842 if ((ovi.dwMajorVersion == 6 && ovi.dwMinorVersion >= 2) | 843 if ((ovi.dwMajorVersion == 6 && ovi.dwMinorVersion >= 2) |
843 || ovi.dwMajorVersion > 6) | 844 || ovi.dwMajorVersion > 6) |
844 win8_or_later = TRUE; | 845 win8_or_later = TRUE; |
845 | 846 |
846 #ifdef HAVE_ACL | 847 #ifdef HAVE_ACL |