+2003-09-12 Paul Eggert <eggert@twinsun.com>
+
+ * setenv.c (clearenv): Define via prototype.
+
+2003-09-10 Bruno Haible <bruno@clisp.org>
+
+ * setenv.c: Include <stdlib.h> and <string.h> unconditionally.
+ * unsetenv.c: Likewise.
+
2003-12-12 Bruno Haible <bruno@clisp.org>
Assume automake-1.8.
# define __set_errno(ev) ((errno) = (ev))
#endif
-#if _LIBC || HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-#if _LIBC || HAVE_STRING_H
-# include <string.h>
-#endif
+#include <stdlib.h>
+#include <string.h>
#if _LIBC || HAVE_UNISTD_H
# include <unistd.h>
#endif
never made it. Nevertheless the POSIX.9 standard (POSIX bindings
for Fortran 77) requires this function. */
int
-clearenv ()
+clearenv (void)
{
LOCK;
# define __set_errno(ev) ((errno) = (ev))
#endif
-#if _LIBC || HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-#if _LIBC || HAVE_STRING_H
-# include <string.h>
-#endif
+#include <stdlib.h>
+#include <string.h>
#if _LIBC || HAVE_UNISTD_H
# include <unistd.h>
#endif