diff --git a/opm/common/utility/FileSystem.hpp b/opm/common/utility/FileSystem.hpp index 861c7db50..e3f0fe344 100644 --- a/opm/common/utility/FileSystem.hpp +++ b/opm/common/utility/FileSystem.hpp @@ -20,7 +20,7 @@ #define OPM_FILESYSTEM_HPP #if __cplusplus < 201703L || \ - (defined(__GNUC__) && __GNUC__ < 8) + (defined(__GNUC__) && __GNUC__ < 8 && !defined(__clang__)) #include #else #include @@ -32,7 +32,7 @@ namespace Opm { #if __cplusplus < 201703L || \ - (defined(__GNUC__) && __GNUC__ < 8) + (defined(__GNUC__) && __GNUC__ < 8 && !defined(__clang__)) namespace filesystem = std::experimental::filesystem; #else namespace filesystem = std::filesystem;