[libcxx-commits] [libcxx] [libc++] Enable C++ stdatomic.h for all C++ versions (PR #95498)

Ryan Prichard via libcxx-commits libcxx-commits at lists.llvm.org
Tue Sep 17 09:15:11 PDT 2024


================
@@ -121,7 +121,7 @@ using std::atomic_signal_fence                         // see below
 #  pragma GCC system_header
 #endif
 
-#if defined(__cplusplus) && _LIBCPP_STD_VER >= 23
+#if defined(__cplusplus)
----------------
rprichard wrote:

Many of the libc++ C headers also have `defined(__cplusplus)`. (For example, `stdlib.h`.) It has mattered in the past for Android's Soong build system because IIRC it adds libc++ headers to the include path even when compiling a C source file.

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


More information about the libcxx-commits mailing list