Module: wine Branch: master Commit: 53e165716d20076610295e568b1c4b9f9108be19 URL: http://source.winehq.org/git/wine.git/?a=commit;h=53e165716d20076610295e568b...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Dec 9 16:15:18 2008 +0100
configure: Add a wrapper macro for mkdir on Windows.
---
configure | 2 ++ configure.ac | 1 + dlls/shell32/xdg.c | 1 + include/config.h.in | 3 +++ include/wine/port.h | 4 ++++ 5 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/configure b/configure index c8bb66b..939e20d 100755 --- a/configure +++ b/configure @@ -17912,7 +17912,9 @@ esac
+ for ac_func in \ + _mkdir \ _pclose \ _popen \ _snprintf \ diff --git a/configure.ac b/configure.ac index 0d5c530..2540c0d 100644 --- a/configure.ac +++ b/configure.ac @@ -1370,6 +1370,7 @@ esac dnl **** Check for functions ****
AC_CHECK_FUNCS(\ + _mkdir \ _pclose \ _popen \ _snprintf \ diff --git a/dlls/shell32/xdg.c b/dlls/shell32/xdg.c index d7f84ab..0cb4272 100644 --- a/dlls/shell32/xdg.c +++ b/dlls/shell32/xdg.c @@ -46,6 +46,7 @@ */
#include "config.h" +#include "wine/port.h"
#include <stdio.h> #include <stdarg.h> diff --git a/include/config.h.in b/include/config.h.in index 8f2c78e..dd8c5ce 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -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
diff --git a/include/wine/port.h b/include/wine/port.h index 68ded3d..df34174 100644 --- a/include/wine/port.h +++ b/include/wine/port.h @@ -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