0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.2.4769: build warning with UCRT

Problem:    Build warning with UCRT.
Solution:   Adjust #ifdef for _wenviron. (John Marriott)
This commit is contained in:
Bram Moolenaar
2022-04-17 10:57:44 +01:00
parent 34ffa10280
commit 68aaff4697
2 changed files with 5 additions and 1 deletions

View File

@@ -3673,8 +3673,10 @@ f_environ(typval_T *argvars UNUSED, typval_T *rettv)
#if !defined(AMIGA) #if !defined(AMIGA)
int i = 0; int i = 0;
char_u *entry, *value; char_u *entry, *value;
# ifdef MSWIN # if defined (MSWIN)
# if !defined(_UCRT)
extern wchar_t **_wenviron; extern wchar_t **_wenviron;
# endif
# else # else
extern char **environ; extern char **environ;
# endif # endif

View File

@@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
4769,
/**/ /**/
4768, 4768,
/**/ /**/