more #defines for platform specific code

This commit is contained in:
Mark Vejvoda
2010-06-04 15:48:29 +00:00
parent a1f26103a6
commit 54a2a36140

View File

@@ -584,9 +584,9 @@ void createDirectoryPaths(string Path)
{ {
//if (':' != *(path-1)) //if (':' != *(path-1))
{ {
#ifdef WIN32 #ifdef _mkdir
_mkdir(DirName); _mkdir(DirName);
#else #elif defined(mkdir)
mkdir(DirName, S_IRWXO); mkdir(DirName, S_IRWXO);
#endif #endif
} }
@@ -594,10 +594,9 @@ void createDirectoryPaths(string Path)
*dirName++ = *path++; *dirName++ = *path++;
*dirName = '\0'; *dirName = '\0';
} }
#ifdef WIN32 #ifdef _mkdir
_mkdir(DirName); _mkdir(DirName);
#else #elif defined(mkdir)
mkdir(DirName, S_IRWXO); mkdir(DirName, S_IRWXO);
#endif #endif