From 54a2a36140eeb6e5b566cc3c83825cc06632ecdc Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 4 Jun 2010 15:48:29 +0000 Subject: [PATCH] more #defines for platform specific code --- .../sources/platform/common/platform_common.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source/shared_lib/sources/platform/common/platform_common.cpp b/source/shared_lib/sources/platform/common/platform_common.cpp index 96578a9dc..f28211ae6 100644 --- a/source/shared_lib/sources/platform/common/platform_common.cpp +++ b/source/shared_lib/sources/platform/common/platform_common.cpp @@ -584,9 +584,9 @@ void createDirectoryPaths(string Path) { //if (':' != *(path-1)) { -#ifdef WIN32 +#ifdef _mkdir _mkdir(DirName); -#else +#elif defined(mkdir) mkdir(DirName, S_IRWXO); #endif } @@ -594,10 +594,9 @@ void createDirectoryPaths(string Path) *dirName++ = *path++; *dirName = '\0'; } -#ifdef WIN32 +#ifdef _mkdir _mkdir(DirName); -#else - +#elif defined(mkdir) mkdir(DirName, S_IRWXO); #endif