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