Ticket #8593: lockfree_atomic_libcpp.patch

File lockfree_atomic_libcpp.patch, 616 bytes (added by reakinator@…, 9 years ago)

lockfree/detail/atomic.hpp patch enabling <atomic> for libc++

  • boost/lockfree/detail/atomic.hpp

     
    1717#undef BOOST_LOCKFREE_NO_HDR_ATOMIC
    1818#endif
    1919
     20// Clang / libc++ supports atomic<> 3.1 onwards, but check for <atomic> to make sure
     21#if defined(BOOST_CLANG)
     22#if defined(_LIBCPP_VERSION) && __has_include( <atomic> )
     23#undef BOOST_LOCKFREE_NO_HDR_ATOMIC
     24#endif
     25#endif
     26
    2027// GCC supports atomic<> from version 4.8 onwards.
    2128#if defined(__GNUC__)
    2229# if defined(__GNUC_PATCHLEVEL__)