+2006-05-12 Bruno Haible <bruno@clisp.org>
+
+ * mkdtemp.c [MINGW]: Include <io.h>.
+ (mkdir): Define using _mkdir.
+
2006-06-28 Bruno Haible <bruno@clisp.org>
* wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
#endif
#ifdef __MINGW32__
-/* mingw's mkdir() function has 1 argument, but we pass 2 arguments.
+# include <io.h>
+/* mingw's _mkdir() function has 1 argument, but we pass 2 arguments.
Therefore we have to disable the argument count checking. */
-# define mkdir ((int (*)()) mkdir)
+# define mkdir ((int (*)()) _mkdir)
#endif
#if !_LIBC