Codechange: check if a define is set directly, instead of indirectly

config.lib happens to set GLOBAL_DATA_DIR in case it is not DOS
and not OS2, but this kind of deduction is annoying to maintain.
It is better to just check if the define you want to use is set,
and leave it to config.lib to set it or not depending on the OS.
This commit is contained in:
Patric Stout 2019-03-10 16:47:34 +01:00
parent 1f57150d80
commit 45fbaa64c2
1 changed files with 1 additions and 1 deletions

View File

@ -1121,7 +1121,7 @@ void DetermineBasePaths(const char *exe)
}
}
#if defined(DOS) || defined(OS2)
#if !defined(GLOBAL_DATA_DIR)
_searchpaths[SP_INSTALLATION_DIR] = NULL;
#else
seprintf(tmp, lastof(tmp), "%s", GLOBAL_DATA_DIR);