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

This commit is contained in:
Ivan Shynkarenka 2020-10-03 23:16:58 +03:00
parent 6e1e5ccd84
commit 5d8c573357

View File

@ -13,12 +13,12 @@
#include "types.hpp"
#include "value.hpp"
#if (__GNUC__ >= 9) || (!defined(__GNUC__) && (__cplusplus >= 201703L))
#ifdef __cpp_lib_filesystem
#if __has_include(<filesystem>)
#define TOML11_HAS_STD_FILESYSTEM
#include <filesystem>
#endif // has_include(<string_view>)
#endif // (gcc >= 9) || (!gcc && (cplusplus >= C++17))
#endif // __cpp_lib_filesystem
namespace toml
{