David Reiss | 204420f | 2008-01-11 20:59:03 +0000 | [diff] [blame] | 1 | // 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
|