]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix compilation failure on mingw.
authorBruno Haible <bruno@clisp.org>
Fri, 12 May 2006 15:52:57 +0000 (15:52 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:18 +0000 (12:13 +0200)
gettext-tools/lib/ChangeLog
gettext-tools/lib/mkdtemp.c
gettext-tools/src/ChangeLog
gettext-tools/src/write-csharp.c
gettext-tools/src/write-java.c

index 7e342e28b41cd9f3768ed34b7592a705b0662002..a06d422a4d63e6bdf2fbcfa1994b6816417e38c8 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-05-11  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.am (libgettextlib_la_SOURCES, libgettextlib_la_LDFLAGS):
index 4db16da34d2a7123aa0fbd2e5ef88efbe01a75ec..084ba2e1429e171284e51677fe0cd7bf90936c6e 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
index ce998a267f65e713996ba75c3d2199634cef06a0..f6b2ce8393777f59450dfca70d0e495699e8a803 100644 (file)
@@ -1,3 +1,10 @@
+2006-05-12  Bruno Haible  <bruno@clisp.org>
+
+       * write-csharp.c [MINGW]: Include <io.h>.
+       (mkdir): Define using _mkdir.
+       * write-java.c [MINGW]: Include <io.h>.
+       (mkdir): Define using _mkdir.
+
 2006-05-11  Bruno Haible  <bruno@clisp.org>
 
        * gettext-po.h.in: Renamed from gettext-po.h.
index 239dd520a4e17f089e9585ee8167cbdcb76eb7a4..403422137dc7f46335bc0a2427e9798a75142356 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
 
 #include "c-ctype.h"
index 17174ba158798c6ecd650e280f49fc4fafc0f02c..041450af864006a1c4ea5cf3cbc737aecf2ea565 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
 
 #include "c-ctype.h"