From 41cf13bb7e1c0f11915327c9b2c1bac2ebcf149d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 30 Apr 2019 20:31:46 +0200 Subject: [PATCH] Fixed #error in self check when __CPPCHECK__ is defined --- lib/path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;