configure: Add a wrapper macro for mkdir on Windows.

This commit is contained in:
Alexandre Julliard 2008-12-09 16:15:18 +01:00
parent fba5c4f328
commit 53e165716d
5 changed files with 11 additions and 0 deletions

2
configure vendored
View File

@ -17910,9 +17910,11 @@ esac
for ac_func in \
_mkdir \
_pclose \
_popen \
_snprintf \

View File

@ -1370,6 +1370,7 @@ esac
dnl **** Check for functions ****
AC_CHECK_FUNCS(\
_mkdir \
_pclose \
_popen \
_snprintf \

View File

@ -46,6 +46,7 @@
*/
#include "config.h"
#include "wine/port.h"
#include <stdio.h>
#include <stdarg.h>

View File

@ -999,6 +999,9 @@
/* Define if Xrender has the XRenderSetPictureTransform function */
#undef HAVE_XRENDERSETPICTURETRANSFORM
/* Define to 1 if you have the `_mkdir' function. */
#undef HAVE__MKDIR
/* Define to 1 if you have the `_pclose' function. */
#undef HAVE__PCLOSE

View File

@ -114,6 +114,10 @@ struct statvfs
#define RTLD_GLOBAL 0x100
#endif
#ifdef HAVE__MKDIR
#define mkdir(path,mode) _mkdir(path)
#endif
#if !defined(HAVE_FTRUNCATE) && defined(HAVE_CHSIZE)
#define ftruncate chsize
#endif