Fixed #3351 (--includes-file is not working as expected)

This commit is contained in:
Daniel Marjamaki 2012-02-05 15:28:37 +01:00
parent 69567515ce
commit 29e66783fa
1 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,11 @@ static void AddInclPathsToList(const std::string& FileList, std::list<std::strin
if (!PathName.empty()) {
PathName = Path::fromNativeSeparators(PathName);
PathName = Path::removeQuotationMarks(PathName);
// If path doesn't end with / or \, add it
if (PathName[PathName.length()-1] != '/')
PathName += '/';
PathNames.push_back(PathName);
}
}