From f2d9fd1d1ff5385a34974c6f646c618b81eabeca Mon Sep 17 00:00:00 2001 From: Ivan Shynkarenka Date: Sat, 3 Oct 2020 22:36:59 +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 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 {