[libcxx-commits] [libcxx] [libc++] Remove unnecessary includes from <atomic> (PR #82880)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 26 09:04:21 PST 2024


================
@@ -30,7 +30,9 @@
 // so libc++'s <math.h> usually absorbs atomic_wide_counter.h into the
 // module with <math.h> and makes atomic_wide_counter.h invisible.
 // Include <math.h> here to work around that.
-#include <math.h>
+#if __building_module(std)
----------------
mordante wrote:

Please add comment about the module here too. `__building_module(std)` gives very strong vibes of being about the C++23 std module.

https://github.com/llvm/llvm-project/pull/82880


More information about the libcxx-commits mailing list