Fixed: Compile toml11 with MinGW cause error in <filesystem> #135

This commit is contained in:
Ivan Shynkarenka
2020-10-02 19:10:04 +03:00
parent 05ceb5ae79
commit 97c8cbdaf5

View File

@@ -13,12 +13,12 @@
#include "types.hpp" #include "types.hpp"
#include "value.hpp" #include "value.hpp"
#if __cplusplus >= 201703L #if (__cplusplus >= 201703L) && !defined(__MINGW32__) && !defined(__MINGW64__)
#if __has_include(<filesystem>) #if __has_include(<filesystem>)
#define TOML11_HAS_STD_FILESYSTEM #define TOML11_HAS_STD_FILESYSTEM
#include <filesystem> #include <filesystem>
#endif // has_include(<string_view>) #endif // has_include(<string_view>)
#endif // cplusplus >= C++17 #endif // (cplusplus >= C++17) && !mingw32 && !mingw64
namespace toml namespace toml
{ {