From 5d8c573357cc65317baf8b2db059d3b016e7b8e1 Mon Sep 17 00:00:00 2001 From: Ivan Shynkarenka Date: Sat, 3 Oct 2020 23:16:58 +0300 Subject: [PATCH] Fixed: Compile toml11 with MinGW cause error in #136 --- toml/parser.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {