From d277ad5a053be4b09693cf6b9e11e4222ddf55d0 Mon Sep 17 00:00:00 2001 From: Kai Aoki Date: Wed, 15 Nov 2023 11:26:00 +0900 Subject: [PATCH] Added macros to disable std::filesystem and std::variant as a workaround for old xcode bugs --- include/fmt/std.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/std.h b/include/fmt/std.h index 4d1f97d2..e7cd7cd7 100644 --- a/include/fmt/std.h +++ b/include/fmt/std.h @@ -59,7 +59,7 @@ # endif #endif -#ifdef __cpp_lib_filesystem +#if !defined(FMT_DISABLE_STD_FILESYSTEM) && defined(__cpp_lib_filesystem) FMT_BEGIN_NAMESPACE namespace detail { @@ -211,7 +211,7 @@ struct formatter, Char, FMT_END_NAMESPACE #endif // __cpp_lib_optional -#ifdef __cpp_lib_variant +#if !defined(FMT_DISABLE_STD_VARIANT) && defined(__cpp_lib_variant) FMT_BEGIN_NAMESPACE namespace detail {