mirror of
https://github.com/glest/glest-source.git
synced 2025-08-30 11:19:48 +02:00
more #defines for platform specific code
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user