diff --git a/lib/preprocessor.cpp b/lib/preprocessor.cpp index fad19c448..f465aa198 100644 --- a/lib/preprocessor.cpp +++ b/lib/preprocessor.cpp @@ -21,6 +21,7 @@ #include "tokenize.h" #include "token.h" #include "filelister.h" +#include "path.h" #include #include @@ -1446,7 +1447,8 @@ void Preprocessor::handleIncludes(std::string &code, const std::string &filePath { if (headerType == UserHeader && _errorLogger && _settings && _settings->_verbose) { - _errorLogger->reportOut("Include file: \"" + filename + "\" not found."); + std::string fixedpath = Path::toNativeSeparators(filename); + _errorLogger->reportOut("Include file: \"" + fixedpath + "\" not found."); } } }