blob: 38a4aa1d878686c43e6d7d93216297ea2d2d9ed6 [file] [log] [blame]
David Reiss0c90f6f2008-02-06 22:18:40 +00001// Distributed under the Thrift Software License
2//
3// See accompanying file LICENSE or visit the Thrift site at:
4// http://developers.facebook.com/thrift/
5
6/**
7 * define for mkdir,since the method signature
8 * is different for the non-POSIX MinGW
9 */
10
11#ifdef MINGW
12#include <io.h>
13#else
14#include <sys/types.h>
15#include <sys/stat.h>
16#endif
17
18#if defined MINGW
19#define MKDIR(x) mkdir(x)
20#else
21#define MKDIR(x) mkdir(x, S_IRWXU | S_IRWXG | S_IRWXO)
22#endif