]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - include/environ.h
Fix MinGW compilation warnings due to environ.h
[thirdparty/binutils-gdb.git] / include / environ.h
index 326a27812db2bdd1562dad00a121c070d3d41d89..32bb0b155c98eaf0170e15e90fd626e143968491 100644 (file)
@@ -27,7 +27,9 @@ Boston, MA 02110-1301, USA.  */
 #     include <crt_externs.h>
 #     define environ (*_NSGetEnviron ())
 #  else
+#    ifndef environ
 extern char **environ;
+#    endif
 #  endif
 #  define HAVE_ENVIRON_DECL
 #endif