* modules/putenv (Depends-on): Add environ.
* lib/putenv.c (environ): Disable declaration.
* lib/unistd.in.h: Update comment.
+2011-09-17 Bruno Haible <bruno@clisp.org>
+
+ putenv: Support for MSVC.
+ * modules/putenv (Depends-on): Add environ.
+ * lib/putenv.c (environ): Disable declaration.
+ * lib/unistd.in.h: Update comment.
+
2011-09-17 Bruno Haible <bruno@clisp.org>
math: Avoid macro redefinition warnings on MSVC.
#include <string.h>
#include <unistd.h>
-#if HAVE_GNU_LD
+#if _LIBC
+# if HAVE_GNU_LD
# define environ __environ
-#else
+# else
extern char **environ;
+# endif
#endif
#if _LIBC
#endif
/* mingw fails to declare _exit in <unistd.h>. */
-/* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
+/* mingw, MSVC, BeOS, Haiku declare environ in <stdlib.h>, not in
+ <unistd.h>. */
/* Solaris declares getcwd not only in <unistd.h> but also in <stdlib.h>. */
/* But avoid namespace pollution on glibc systems. */
#ifndef __GLIBC__
Depends-on:
stdlib
+environ [test $REPLACE_PUTENV = 1]
malloc-posix [test $REPLACE_PUTENV = 1]
configure.ac: