- 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
|
|
@ -135,7 +135,7 @@ FGameConfigFile::FGameConfigFile ()
|
|||
local_app_support << cpath << "/" GAME_DIR;
|
||||
SetValueForKey("Path", local_app_support, true);
|
||||
}
|
||||
#elif !defined(unix)
|
||||
#elif !defined(__unix__)
|
||||
SetValueForKey ("Path", "$HOME", true);
|
||||
SetValueForKey ("Path", "$PROGDIR", true);
|
||||
#else
|
||||
|
|
@ -153,7 +153,7 @@ FGameConfigFile::FGameConfigFile ()
|
|||
SetValueForKey ("Path", user_app_support, true);
|
||||
SetValueForKey ("Path", "$PROGDIR", true);
|
||||
SetValueForKey ("Path", local_app_support, true);
|
||||
#elif !defined(unix)
|
||||
#elif !defined(__unix__)
|
||||
SetValueForKey ("Path", "$PROGDIR", true);
|
||||
#else
|
||||
SetValueForKey ("Path", "~/" GAME_DIR, true);
|
||||
|
|
@ -683,7 +683,7 @@ void FGameConfigFile::CreateStandardAutoExec(const char *section, bool start)
|
|||
{
|
||||
path << cpath << "/" GAME_DIR "/autoexec.cfg";
|
||||
}
|
||||
#elif !defined(unix)
|
||||
#elif !defined(__unix__)
|
||||
path = "$PROGDIR/autoexec.cfg";
|
||||
#else
|
||||
path = GetUserFile ("autoexec.cfg");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue