mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-30 04:47:12 +02:00
Do not disable GCC intrinsics under clang-cl
This commit is contained in:
@ -17,8 +17,11 @@
|
||||
// Defines the BOOST_SP_HAS_GCC_INTRINSICS macro if the __atomic_*
|
||||
// intrinsics are available.
|
||||
|
||||
// Libraries (e.g. Kokkos) sometimes define the __ATOMIC_RELAXED macros,
|
||||
// leading to errors under MSVC (https://github.com/boostorg/smart_ptr/pull/112)
|
||||
|
||||
#if defined( __ATOMIC_RELAXED ) && defined( __ATOMIC_ACQUIRE ) && defined( __ATOMIC_RELEASE ) && defined( __ATOMIC_ACQ_REL ) && !defined(_MSC_VER)
|
||||
#if defined( __ATOMIC_RELAXED ) && defined( __ATOMIC_ACQUIRE ) && defined( __ATOMIC_RELEASE ) && defined( __ATOMIC_ACQ_REL ) \
|
||||
&& !( defined(_MSC_VER) && !defined(__clang__) )
|
||||
|
||||
# define BOOST_SP_HAS_GCC_INTRINSICS
|
||||
|
||||
|
Reference in New Issue
Block a user