forked from Imagelibrary/binutils-gdb
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user