Fix compilation warning by MinGW GCC.

setenv.c [!HAVE_ENVIRON_DECL]: Avoid declaring environ if it is
 a macro, as this causes compiler warnings with MinGW.
This commit is contained in:
Eli Zaretskii 2013-03-17 19:04:25 +00:00
parent 5f7b875afe
commit 72edb7c28f
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2013-03-17 Eli Zaretskii <eliz@gnu.org>
* setenv.c [!HAVE_ENVIRON_DECL]: Avoid declaring environ if it is
a macro, as this causes compiler warnings with MinGW.
2013-03-01 Andreas Schwab <schwab@linux-m68k.org>
* obstacks.texi (Obstacks): Trim @node to only contain the

View File

@ -63,8 +63,11 @@ extern int errno;
#define __environ environ
#ifndef HAVE_ENVIRON_DECL
/* MinGW defines environ to call a function. */
#ifndef environ
extern char **environ;
#endif
#endif
#undef setenv
#undef unsetenv