Patch 8.2.0793

6 views
Skip to first unread message

Bram Moolenaar

unread,
May 18, 2020, 2:18:12 PM5/18/20
to vim...@googlegroups.com

Patch 8.2.0793
Problem: MS-Windows: cannot build GUI with small features. (Michael Soyka)
Solution: Add #ifdef around use of windowsVersion. (Ken Takata)
Files: src/os_win32.c


*** ../vim-8.2.0792/src/os_win32.c 2020-05-17 14:06:07.317201551 +0200
--- src/os_win32.c 2020-05-18 20:15:23.181589018 +0200
***************
*** 822,828 ****
#endif

/*
! * Set "win8_or_later" and fill in "windowsVersion".
*/
void
PlatformId(void)
--- 822,828 ----
#endif

/*
! * Set "win8_or_later" and fill in "windowsVersion" if possible.
*/
void
PlatformId(void)
***************
*** 836,844 ****
ovi.dwOSVersionInfoSize = sizeof(ovi);
GetVersionEx(&ovi);

vim_snprintf(windowsVersion, sizeof(windowsVersion), "%d.%d",
(int)ovi.dwMajorVersion, (int)ovi.dwMinorVersion);
!
if ((ovi.dwMajorVersion == 6 && ovi.dwMinorVersion >= 2)
|| ovi.dwMajorVersion > 6)
win8_or_later = TRUE;
--- 836,845 ----
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;
*** ../vim-8.2.0792/src/version.c 2020-05-18 20:12:05.810157467 +0200
--- src/version.c 2020-05-18 20:16:43.449357692 +0200
***************
*** 748,749 ****
--- 748,751 ----
{ /* Add new patch number below this line */
+ /**/
+ 793,
/**/

--
Why is it called "Windows"? "Gates" would be more appropriate...

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages