diff --git a/toml/parser.hpp b/toml/parser.hpp index 1adef87..4960dcb 100644 --- a/toml/parser.hpp +++ b/toml/parser.hpp @@ -13,12 +13,12 @@ #include "types.hpp" #include "value.hpp" -#if (__cplusplus >= 201703L) && !defined(__MINGW32__) && !defined(__MINGW64__) +#if (__cplusplus >= 201703L) || (__GNUC__ >= 9) #if __has_include() #define TOML11_HAS_STD_FILESYSTEM #include #endif // has_include() -#endif // (cplusplus >= C++17) && !mingw32 && !mingw64 +#endif // (cplusplus >= C++17) || (gcc >= 9) namespace toml {