Fixed #error in self check when __CPPCHECK__ is defined

This commit is contained in:
Daniel Marjamäki 2019-04-30 20:31:46 +02:00
parent d69f002757
commit 41cf13bb7e
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ std::string Path::getAbsoluteFilePath(const std::string& filePath)
char absolute[_MAX_PATH];
if (_fullpath(absolute, filePath.c_str(), _MAX_PATH))
absolute_path = absolute;
#elif defined(__linux__) || defined(__sun) || defined(__hpux) || defined(__GNUC__)
#elif defined(__linux__) || defined(__sun) || defined(__hpux) || defined(__GNUC__) || defined(__CPPCHECK__)
char * absolute = realpath(filePath.c_str(), nullptr);
if (absolute)
absolute_path = absolute;