Fix brought over from gettext.
authorBruno Haible <bruno@clisp.org>
Wed, 28 Jun 2006 18:06:12 +0000 (18:06 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 28 Jun 2006 18:06:12 +0000 (18:06 +0000)
lib/ChangeLog
lib/mkdtemp.c

index 9a7894c..27eddb8 100644 (file)
@@ -1,3 +1,8 @@
+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
index d8634c3..a1be0cd 100644 (file)
 #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