From: Bruno Haible Date: Tue, 21 Oct 2003 20:18:15 +0000 (+0000) Subject: Avoid a compilation error on mingw. X-Git-Tag: v0.13~197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5130a10155d135a63438c8b2b3e9ce4d925dc85b;p=thirdparty%2Fgettext.git Avoid a compilation error on mingw. --- diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog index 8cab22788..efa3982cd 100644 --- a/gettext-tools/lib/ChangeLog +++ b/gettext-tools/lib/ChangeLog @@ -1,3 +1,7 @@ +2003-10-21 Bruno Haible + + * mkdtemp.c (mkdir): Redefine on mingw. + 2003-10-17 Bruno Haible * binary-io.h: Avoid warnings on Cygwin. diff --git a/gettext-tools/lib/mkdtemp.c b/gettext-tools/lib/mkdtemp.c index 8434acf9c..0866e543c 100644 --- a/gettext-tools/lib/mkdtemp.c +++ b/gettext-tools/lib/mkdtemp.c @@ -86,6 +86,12 @@ # 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 diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 0808b490e..ac0ee237c 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,7 @@ +2003-10-21 Bruno Haible + + * write-java.c (mkdir): Redefine on mingw. + 2003-10-12 Bruno Haible Improved ObjectiveC support. diff --git a/gettext-tools/src/write-java.c b/gettext-tools/src/write-java.c index 104a61c59..bbf2090ed 100644 --- a/gettext-tools/src/write-java.c +++ b/gettext-tools/src/write-java.c @@ -61,6 +61,12 @@ # include #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"