changeset 28489:922cd0dced4b v8.2.4769

patch 8.2.4769: build warning with UCRT Commit: https://github.com/vim/vim/commit/68aaff4697bab4a278436e6f7ae042262223e51c Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 17 10:57:44 2022 +0100 patch 8.2.4769: build warning with UCRT Problem: Build warning with UCRT. Solution: Adjust #ifdef for _wenviron. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Sun, 17 Apr 2022 12:00:06 +0200
parents 2c570d802c04
children 732ffbc2ca18
files src/evalfunc.c src/version.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -3673,8 +3673,10 @@ f_environ(typval_T *argvars UNUSED, typv
 #if !defined(AMIGA)
     int			i = 0;
     char_u		*entry, *value;
-# ifdef MSWIN
+# if defined (MSWIN)
+#  if !defined(_UCRT)
     extern wchar_t	**_wenviron;
+#  endif
 # else
     extern char		**environ;
 # endif
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    4769,
+/**/
     4768,
 /**/
     4767,