]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid a compilation error on mingw.
authorBruno Haible <bruno@clisp.org>
Tue, 21 Oct 2003 20:18:15 +0000 (20:18 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:05 +0000 (12:11 +0200)
gettext-tools/lib/ChangeLog
gettext-tools/lib/mkdtemp.c
gettext-tools/src/ChangeLog
gettext-tools/src/write-java.c

index 8cab22788be8efd70dfed42c8c3d6208046cdcb7..efa3982cd0975fac7148e7119fa32dd10f8104b5 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-21  Bruno Haible  <bruno@clisp.org>
+
+       * mkdtemp.c (mkdir): Redefine on mingw.
+
 2003-10-17  Bruno Haible  <bruno@clisp.org>
 
        * binary-io.h: Avoid warnings on Cygwin.
index 8434acf9cba0eeb775e13a58658c849428f470ab..0866e543c298a5f981d43f5b1aa3e97bb155efa8 100644 (file)
 # define S_IXUSR 00100
 #endif
 
+#ifdef __MINGW32__
+/* 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)
+#endif
+
 #if !_LIBC
 # define __getpid getpid
 # define __gettimeofday gettimeofday
index 0808b490e34a29b1eecef1c07de43ccc0a218b85..ac0ee237c93cab9a266acf9409f91e529a3c9a81 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-21  Bruno Haible  <bruno@clisp.org>
+
+       * write-java.c (mkdir): Redefine on mingw.
+
 2003-10-12  Bruno Haible  <bruno@clisp.org>
 
        Improved ObjectiveC support.
index 104a61c59b4e33c907a505a0ffbea5aa0c53d675..bbf2090ed30ea3ff541c9d7954eb83d8a7cb2f4a 100644 (file)
 # include <unistd.h>
 #endif
 
+#ifdef __MINGW32__
+/* 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)
+#endif
+
 #include "c-ctype.h"
 #include "error.h"
 #include "javacomp.h"