diff --git a/simgear/misc/sg_path.cxx b/simgear/misc/sg_path.cxx index 1aeb12ce..542eb8f6 100644 --- a/simgear/misc/sg_path.cxx +++ b/simgear/misc/sg_path.cxx @@ -35,14 +35,19 @@ * define directory path separators */ -#ifdef macintosh +#if defined( macintosh ) static const char sgDirPathSep = ':'; static const char sgDirPathSepBad = '/'; #else static const char sgDirPathSep = '/'; static const char sgDirPathSepBad = ':'; #endif + +#if defined( WIN32 ) static const char sgSearchPathSep = ';'; +#else +static const char sgSearchPathSep = ':'; +#endif // If Unix, replace all ":" with "/". If MacOS, replace all "/" with