diff --git a/lib/path.cpp b/lib/path.cpp index 134ccc9a7..f36c30a3e 100644 --- a/lib/path.cpp +++ b/lib/path.cpp @@ -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;