From 8fe59f0f204fb4f84a599f9f8ba8689c87e5bfd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 28 Jul 2026 23:08:01 +0300 Subject: [PATCH] Add a missing include for the C++ module build The std.h header uses types such as std::atomic and std::atomic_flag. For the normal build mode, this header does include all the headers it needs, such as . However when building the C++ module of {fmt}, the std.h header omits such includes, and instead expects them to be included beforehand by fmt.cc - which lacked including . This fixes building the C++ module with libc++ 23, which has removed a number of unnecessary transitive includes. --- src/fmt.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fmt.cc b/src/fmt.cc index f319ce94..6d1d73b5 100644 --- a/src/fmt.cc +++ b/src/fmt.cc @@ -19,6 +19,7 @@ module; // to prevent attachment to this module. #ifndef FMT_IMPORT_STD # include +# include # include # include # include