Mercurial > hg > octave-lyh > gnulib-hg
changeset 6883:d15c3a06ecba
Fix brought over from gettext.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 28 Jun 2006 18:06:12 +0000 |
parents | 6f91a91ac710 |
children | a62f8da3a2b4 |
files | lib/ChangeLog lib/mkdtemp.c |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -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
--- a/lib/mkdtemp.c +++ b/lib/mkdtemp.c @@ -84,9 +84,10 @@ #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