diff --git a/include/boost/smart_ptr/detail/atomic_count.hpp b/include/boost/smart_ptr/detail/atomic_count.hpp index 6e4f71a..e0cbe26 100644 --- a/include/boost/smart_ptr/detail/atomic_count.hpp +++ b/include/boost/smart_ptr/detail/atomic_count.hpp @@ -44,7 +44,7 @@ // #include -#include +#include #if defined( BOOST_AC_DISABLE_THREADS ) # include @@ -79,7 +79,7 @@ #elif defined( __GNUC__ ) && ( defined( __i386__ ) || defined( __x86_64__ ) ) && !defined( __PATHSCALE__ ) # include -#elif defined( BOOST_SP_HAS_SYNC ) +#elif defined( BOOST_SP_HAS_SYNC_INTRINSICS ) # include #elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) diff --git a/include/boost/smart_ptr/detail/sp_counted_base.hpp b/include/boost/smart_ptr/detail/sp_counted_base.hpp index 4386137..f9a5c14 100644 --- a/include/boost/smart_ptr/detail/sp_counted_base.hpp +++ b/include/boost/smart_ptr/detail/sp_counted_base.hpp @@ -18,7 +18,7 @@ // #include -#include +#include #if !defined( __c2__ ) && defined( __clang__ ) && defined( __has_extension ) # if __has_extension( __c_atomic__ ) @@ -71,7 +71,7 @@ #elif defined( __GNUC__ ) && ( defined( __mips__ ) || defined( _mips ) ) && !defined(__PATHSCALE__) && !defined( __mips16 ) # include -#elif defined( BOOST_SP_HAS_SYNC ) +#elif defined( BOOST_SP_HAS_SYNC_INTRINSICS ) # include #elif defined(__GNUC__) && ( defined( __sparcv9 ) || ( defined( __sparcv8 ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 402 ) ) ) diff --git a/include/boost/smart_ptr/detail/sp_has_sync.hpp b/include/boost/smart_ptr/detail/sp_has_sync_intrinsics.hpp similarity index 58% rename from include/boost/smart_ptr/detail/sp_has_sync.hpp rename to include/boost/smart_ptr/detail/sp_has_sync_intrinsics.hpp index e1debf0..92684be 100644 --- a/include/boost/smart_ptr/detail/sp_has_sync.hpp +++ b/include/boost/smart_ptr/detail/sp_has_sync_intrinsics.hpp @@ -8,7 +8,7 @@ #endif // -// boost/smart_ptr/detail/sp_has_sync.hpp +// boost/smart_ptr/detail/sp_has_sync_intrinsics.hpp // // Copyright (c) 2008, 2009 Peter Dimov // @@ -16,50 +16,50 @@ // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // -// Defines the BOOST_SP_HAS_SYNC macro if the __sync_* intrinsics +// Defines the BOOST_SP_HAS_SYNC_INTRINSICS macro if the __sync_* intrinsics // are available. // -#ifndef BOOST_SP_NO_SYNC +#if !defined( BOOST_SP_NO_SYNC_INTRINSICS ) && !defined( BOOST_SP_NO_SYNC ) -#if !defined( __c2__ ) && defined( __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 ) +#if defined( __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 ) && !defined( __c2__ ) -# define BOOST_SP_HAS_SYNC +# define BOOST_SP_HAS_SYNC_INTRINSICS #elif defined( __IBMCPP__ ) && ( __IBMCPP__ >= 1210 ) && !defined( __COMPILER_VER__ ) -# define BOOST_SP_HAS_SYNC +# define BOOST_SP_HAS_SYNC_INTRINSICS -#elif !defined( __c2__ ) && defined( __GNUC__ ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 ) +#elif defined( __GNUC__ ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 ) && !defined( __c2__ ) -#define BOOST_SP_HAS_SYNC +#define BOOST_SP_HAS_SYNC_INTRINSICS #if defined( __arm__ ) || defined( __armel__ ) -#undef BOOST_SP_HAS_SYNC +#undef BOOST_SP_HAS_SYNC_INTRINSICS #endif #if defined( __hppa ) || defined( __hppa__ ) -#undef BOOST_SP_HAS_SYNC +#undef BOOST_SP_HAS_SYNC_INTRINSICS #endif #if defined( __m68k__ ) -#undef BOOST_SP_HAS_SYNC +#undef BOOST_SP_HAS_SYNC_INTRINSICS #endif #if defined( __sh__ ) -#undef BOOST_SP_HAS_SYNC +#undef BOOST_SP_HAS_SYNC_INTRINSICS #endif #if defined( __sparc__ ) -#undef BOOST_SP_HAS_SYNC +#undef BOOST_SP_HAS_SYNC_INTRINSICS #endif #if defined( __INTEL_COMPILER ) && !defined( __ia64__ ) && ( __INTEL_COMPILER < 1110 ) -#undef BOOST_SP_HAS_SYNC +#undef BOOST_SP_HAS_SYNC_INTRINSICS #endif #if defined(__PATHSCALE__) && ((__PATHCC__ == 4) && (__PATHCC_MINOR__ < 9)) -#undef BOOST_SP_HAS_SYNC +#undef BOOST_SP_HAS_SYNC_INTRINSICS #endif #endif diff --git a/include/boost/smart_ptr/detail/spinlock.hpp b/include/boost/smart_ptr/detail/spinlock.hpp index 0b618df..1466dd1 100644 --- a/include/boost/smart_ptr/detail/spinlock.hpp +++ b/include/boost/smart_ptr/detail/spinlock.hpp @@ -29,7 +29,7 @@ // #include -#include +#include #if defined( BOOST_SP_USE_STD_ATOMIC ) # if !defined( __clang__ ) @@ -49,7 +49,7 @@ #elif defined(__GNUC__) && defined( __arm__ ) && !defined( __thumb__ ) # include -#elif defined( BOOST_SP_HAS_SYNC ) +#elif defined( BOOST_SP_HAS_SYNC_INTRINSICS ) # include #elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)