Ticket #9041: boost-1.55.0-atomic-check_lock_free_flag.patch

File boost-1.55.0-atomic-check_lock_free_flag.patch, 875 bytes (added by Peter Vingelmann <peter@…>, 9 years ago)

Fix for gcc 4.7+ cross-compilers.

  • boost/atomic/detail/platform.hpp

    diff --git a/boost/atomic/detail/platform.hpp b/boost/atomic/detail/platform.hpp
    index 3dfb73d..ff1848b 100644
    a b  
    1616#endif
    1717
    1818// Intel compiler does not support __atomic* intrinsics properly, although defines them (tested with 13.0.1 and 13.1.1 on Linux)
    19 #if (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 407) && !defined(BOOST_INTEL_CXX_VERSION))\
    20     || (defined(BOOST_CLANG) && ((__clang_major__ * 100 + __clang_minor__) >= 302))
     19#if ((defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 407) && !defined(BOOST_INTEL_CXX_VERSION))\
     20    || (defined(BOOST_CLANG) && ((__clang_major__ * 100 + __clang_minor__) >= 302)))\
     21    && (defined(__GCC_ATOMIC_BOOL_LOCK_FREE) && (__GCC_ATOMIC_BOOL_LOCK_FREE == 2))
    2122
    2223    #include <boost/atomic/detail/gcc-atomic.hpp>
    2324