[libcxx-commits] [libcxx] [libc++] Remove _LIBCPP_ATOMIC_ONLY_USE_BUILTINS (PR #82000)

James Y Knight via libcxx-commits libcxx-commits at lists.llvm.org
Sun Feb 25 17:51:35 PST 2024


================
@@ -9,24 +9,20 @@
 #ifndef _LIBCPP___ATOMIC_CXX_ATOMIC_IMPL_H
 #define _LIBCPP___ATOMIC_CXX_ATOMIC_IMPL_H
 
-#include <__atomic/is_always_lock_free.h>
 #include <__atomic/memory_order.h>
 #include <__config>
 #include <__memory/addressof.h>
-#include <__type_traits/conditional.h>
 #include <__type_traits/is_assignable.h>
 #include <__type_traits/is_trivially_copyable.h>
 #include <__type_traits/remove_const.h>
-#include <cstddef>
----------------
jyknight wrote:

...except that this include is still necessary, because of ptrdiff_t:
`/home/runner/_work/llvm-project/llvm-project/build/generic-cxx26/include/c++/v1/__atomic/cxx_atomic_impl.h:478:59: error: unknown type name 'ptrdiff_t'`

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


More information about the libcxx-commits mailing list