I recently started using a ucrt enabled build of mingw64 (gcc 11.2.0)
which gives me this compile warning:
<snip>
gcc -c -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603
-DHAVE_PATHDEF -DFEAT_NORMAL -DHAVE_STDINT_H -D__USE_MINGW_ANSI_STDIO
-pipe -march=native -Wall -O3 -fomit-frame-pointer -freg-struct-return
-fpie -fPIE -DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD evalfunc.c -o
gobjnative/evalfunc.o
In file included from os_win32.h:77,
from vim.h:279,
from evalfunc.c:15:
evalfunc.c: In function 'f_environ':
evalfunc.c:3679:27: warning: '__p__environ' redeclared without dllimport
attribute: previous dllimport ignored [-Wattributes]
3679 | extern char **environ;
| ^~~~~~~
</snip>
The attach patch seems to fix it.
Cheers
John
--
--
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/04caf53e-998a-1980-583d-5aafac64e468%40internode.on.net.
--- evalfunc.c.orig 2022-04-17 06:26:12.533038800 +1000
+++ evalfunc.c 2022-04-17 07:42:49.876641800 +1000
@@ -3673,8 +3673,10 @@
#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