[libcxx-commits] [libcxx] [libc++] Enable C++ stdatomic.h for all C++ versions (PR #95498)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jul 15 10:59:51 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)
----------------
ldionne wrote:
Since this header from libc++ is supposed to only be included in C++ mode, we should always take this branch and the `#else` should be unnecessary. Do you agree? The `#else` was previously useful because it handled the pre-C++23 behavior, but it wouldn't be useful anymore with this patch.
https://github.com/llvm/llvm-project/pull/95498
More information about the libcxx-commits
mailing list