- Use a more conformant C++ preprocessor macro identifier for Unix systems.
The 'unix' identifier isn't defined when '-std' is passed to the compiler (tested with gcc and clang), so use '__unix__' which is well enough documented.
This commit is contained in:
parent
81334809c4
commit
4ce0574b3f
14 changed files with 23 additions and 23 deletions
|
|
@ -1919,7 +1919,7 @@ FString G_BuildSaveName (const char *prefix, int slot)
|
|||
leader = Args->CheckValue ("-savedir");
|
||||
if (leader.IsEmpty())
|
||||
{
|
||||
#if !defined(unix) && !defined(__APPLE__)
|
||||
#if !defined(__unix__) && !defined(__APPLE__)
|
||||
if (Args->CheckParm ("-cdrom"))
|
||||
{
|
||||
leader = CDROM_DIR "/";
|
||||
|
|
@ -1931,7 +1931,7 @@ FString G_BuildSaveName (const char *prefix, int slot)
|
|||
}
|
||||
if (leader.IsEmpty())
|
||||
{
|
||||
#ifdef unix
|
||||
#ifdef __unix__
|
||||
leader = "~/" GAME_DIR;
|
||||
#elif defined(__APPLE__)
|
||||
char cpath[PATH_MAX];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue