From: curt Date: Sat, 9 Aug 2003 02:54:15 +0000 (+0000) Subject: Only use the ";" delimiter under WIN32 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0bf579cf27afcab6c718cb0227ceb8b6af76d9fa;p=simgear.git Only use the ";" delimiter under WIN32 --- 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