[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] mkdtemp fix
From: |
Bruno Haible |
Subject: |
Re: [bug-gnulib] mkdtemp fix |
Date: |
Wed, 28 Jun 2006 20:04:47 +0200 |
User-agent: |
KMail/1.9.1 |
Eric Blake wrote:
> mkdtemp already contains mingw mkdir neutralization code.
It is not up to date. I'm committing this fix, found while porting
gettext to mingw.
Bruno
2006-05-12 Bruno Haible <address@hidden>
* mkdtemp.c [MINGW]: Include <io.h>.
(mkdir): Define using _mkdir.
***************
*** 84,92 ****
#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
--- 85,94 ----
#endif
#ifdef __MINGW32__
! # 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)
#endif
#if !_LIBC
Re: [bug-gnulib] mkdtemp fix,
Bruno Haible <=