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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202005181818.04III5Fq030894%40masaka.moolenaar.net.

Raspunde prin e-mail lui