From acea5a50f5cdf608d0c9865e2c9b1858a52ab2b6 Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Sun, 8 Dec 2024 00:08:04 +0500 Subject: [PATCH] Allow disabling by define FMT_CPP_LIB_FILESYSTEM=0 Signed-off-by: Vladislav Shchapov --- include/fmt/std.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/fmt/std.h b/include/fmt/std.h index 82fa5278d038..b00e402255f5 100644 --- a/include/fmt/std.h +++ b/include/fmt/std.h @@ -27,6 +27,10 @@ // Check FMT_CPLUSPLUS to suppress a bogus warning in MSVC. # if FMT_CPLUSPLUS >= 201703L +# if FMT_HAS_INCLUDE() && \ + (!defined(FMT_CPP_LIB_FILESYSTEM) || FMT_CPP_LIB_FILESYSTEM != 0) +# include +# endif # if FMT_HAS_INCLUDE() # include # endif @@ -76,7 +80,6 @@ #endif #if FMT_CPP_LIB_FILESYSTEM -# include FMT_BEGIN_NAMESPACE namespace detail {