There is nothing in our crt parts, neither compat wrappers nor
import libraries, that defines a variable named "environ" without
a leading underscore.

Signed-off-by: Martin Storsjö <mar...@martin.st>
---
 mingw-w64-headers/crt/stdlib.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/mingw-w64-headers/crt/stdlib.h b/mingw-w64-headers/crt/stdlib.h
index c09a458..7c9c820 100644
--- a/mingw-w64-headers/crt/stdlib.h
+++ b/mingw-w64-headers/crt/stdlib.h
@@ -196,9 +196,7 @@ _CRTIMP int __cdecl ___mb_cur_max_func(void);
 #endif
 #endif
 
-#ifdef _POSIX_
-  extern char **environ;
-#else
+#ifndef _POSIX_
 #ifndef _environ
 #ifdef _MSVCRT_
   extern char **_environ;
@@ -216,7 +214,7 @@ _CRTIMP int __cdecl ___mb_cur_max_func(void);
 #define _wenviron (* __MINGW_IMP_SYMBOL(_wenviron))
 #endif
 #endif
-#endif
+#endif /* !_POSIX_ */
 #ifndef _pgmptr
 #ifdef _MSVCRT_
   extern char *_pgmptr;
-- 
2.7.4


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to