libiberty/setenv.c: Do not declare environ if defined as a macro.

Otherwise, it causes a build warning on some platforms such as MinGW.

libiberty/ChangeLog (Eli Zaretskii  <eliz@gnu.org>):

        * setenv.c <environ>: Declare only if not a macro.
This commit is contained in:
Joel Brobecker
2015-04-22 12:35:54 -07:00
parent f16eab5ffb
commit dfc0f57b74
2 changed files with 6 additions and 0 deletions

View File

@@ -63,8 +63,10 @@ extern int errno;
#define __environ environ
#ifndef HAVE_ENVIRON_DECL
#ifndef environ
extern char **environ;
#endif
#endif
#undef setenv
#undef unsetenv