From b924e70e3cda1f3044c3b9879e22ced85d62b3a5 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Thu, 25 Mar 2021 11:44:11 +0900 Subject: [PATCH] feat: add a simple way to disable As jwillikers pointed out in #150, there is a case where compiler defines the corresponding feature test macro of but is actually not available. The macro is a way to disable the feature regardless of the status of feature test macro. --- toml/parser.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toml/parser.hpp b/toml/parser.hpp index a1fa318..c3df644 100644 --- a/toml/parser.hpp +++ b/toml/parser.hpp @@ -13,12 +13,14 @@ #include "types.hpp" #include "value.hpp" +#ifndef TOML11_DISABLE_STD_FILESYSTEM #ifdef __cpp_lib_filesystem #if __has_include() #define TOML11_HAS_STD_FILESYSTEM #include #endif // has_include() #endif // __cpp_lib_filesystem +#endif // TOML11_DISABLE_STD_FILESYSTEM namespace toml {