diff options
author | Eli Zaretskii <eliz@gnu.org> | 2013-03-17 19:04:25 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2013-03-17 19:04:25 +0000 |
commit | 4c4c20c834b4cfbfbe4405c214f9844f075d78d5 (patch) | |
tree | d863ce87cb90add2c345199284a061cdf2dbd44e /libiberty/setenv.c | |
parent | 0e0c561cfb1a7c83f4c3a50af90c4d6d807b734f (diff) | |
download | binutils-redhat-4c4c20c834b4cfbfbe4405c214f9844f075d78d5.tar.gz |
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.
Diffstat (limited to 'libiberty/setenv.c')
-rw-r--r-- | libiberty/setenv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libiberty/setenv.c b/libiberty/setenv.c index 96917d5769..921e968860 100644 --- a/libiberty/setenv.c +++ b/libiberty/setenv.c @@ -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 |