Make sure we use the correct style of filepath separator on Windows

('libs/ardour/file_source.cc' still to be investigated)
This commit is contained in:
John Emmas 2014-04-11 13:03:48 +01:00
parent c046b7c9d3
commit d95de39339
6 changed files with 11 additions and 11 deletions

View file

@ -174,7 +174,7 @@ PBD::search_path_expand (string path)
vector<string> s;
vector<string> n;
split (path, s, ':');
split (path, s, G_SEARCHPATH_SEPARATOR);
for (vector<string>::iterator i = s.begin(); i != s.end(); ++i) {
string exp = path_expand (*i);
@ -187,7 +187,7 @@ PBD::search_path_expand (string path)
for (vector<string>::iterator i = n.begin(); i != n.end(); ++i) {
if (!r.empty()) {
r += ':';
r += G_SEARCHPATH_SEPARATOR;
}
r += *i;
}