Define BOOST_SP_HAS_SYNC when __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is set. Refs #7141.

[SVN r81128]
This commit is contained in:
Peter Dimov
2012-10-31 20:37:21 +00:00
parent f2d4b67a48
commit 10dcb8db7c

View File

@ -22,7 +22,15 @@
#ifndef BOOST_SP_NO_SYNC
#if defined( __GNUC__ ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 )
#if defined( __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 )
# define BOOST_SP_HAS_SYNC
#elif defined( __IBMCPP__ ) && ( __IBMCPP__ >= 1210 )
# define BOOST_SP_HAS_SYNC
#elif defined( __GNUC__ ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 )
#define BOOST_SP_HAS_SYNC
@ -54,10 +62,6 @@
#undef BOOST_SP_HAS_SYNC
#endif
#elif defined( __IBMCPP__ ) && ( __IBMCPP__ >= 1210 )
#define BOOST_SP_HAS_SYNC
#endif
#endif // #ifndef BOOST_SP_NO_SYNC