From 9e820f825a3bc906702014b1836bc8b8924acb9b Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 6 Jan 2024 15:11:09 -0800 Subject: [PATCH] Disable transitive includes --- include/fmt/format.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/fmt/format.h b/include/fmt/format.h index f36b024030c5d..1bac0ee8f11ba 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -33,6 +33,11 @@ #ifndef FMT_FORMAT_H_ #define FMT_FORMAT_H_ +#ifndef _LIBCPP_REMOVE_TRANSITIVE_INCLUDES +# define _LIBCPP_REMOVE_TRANSITIVE_INCLUDES +# define FMT_REMOVE_TRANSITIVE_INCLUDES +#endif + #include // std::signbit #include // uint32_t #include // std::memcpy @@ -4498,4 +4503,9 @@ FMT_END_NAMESPACE # define FMT_FUNC #endif +// Restore _LIBCPP_REMOVE_TRANSITIVE_INCLUDES. +#ifdef FMT_REMOVE_TRANSITIVE_INCLUDES +# undef _LIBCPP_REMOVE_TRANSITIVE_INCLUDES +#endif + #endif // FMT_FORMAT_H_