diff --git a/toml/parser.hpp b/toml/parser.hpp index d685f00..f6d6374 100644 --- a/toml/parser.hpp +++ b/toml/parser.hpp @@ -13,12 +13,12 @@ #include "types.hpp" #include "value.hpp" -#if (__GNUC__ >= 9) || (!defined(__GNUC__) && (__cplusplus >= 201703L)) +#ifdef __cpp_lib_filesystem #if __has_include() #define TOML11_HAS_STD_FILESYSTEM #include #endif // has_include() -#endif // (gcc >= 9) || (!gcc && (cplusplus >= C++17)) +#endif // __cpp_lib_filesystem namespace toml {