From 6957a17434685407f13c81c2ea43327798c2f7b6 Mon Sep 17 00:00:00 2001 From: "Rebecca N. Palmer" Date: Tue, 14 Jul 2015 08:00:22 +0100 Subject: [PATCH] fgValidatePath: fix \ vs / Windows bug --- src/Main/util.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Main/util.cxx b/src/Main/util.cxx index 40d3244d6..d6be946fa 100644 --- a/src/Main/util.cxx +++ b/src/Main/util.cxx @@ -216,6 +216,9 @@ std::string fgValidatePath (const std::string& path, bool write) normed_path2 = SGPath(path2.dir()).realpath() + "/" + path2.file(); } +#if defined(_MSC_VER) /*for MS compilers */ || defined(_WIN32) /*needed for non MS windows compilers like MingW*/ + normed_path2 = SGPath(normed_path2).str(); // convert \ to / +#endif // Check if (fgValidatePath_internal(normed_path1, write).empty() || -- 2.39.5