From 0bf579cf27afcab6c718cb0227ceb8b6af76d9fa Mon Sep 17 00:00:00 2001 From: curt Date: Sat, 9 Aug 2003 02:54:15 +0000 Subject: [PATCH] Only use the ";" delimiter under WIN32 --- simgear/misc/sg_path.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.5