|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r81128 - trunk/boost/smart_ptr/detail
From: pdimov_at_[hidden]
Date: 2012-10-31 16:37:21
Author: pdimov
Date: 2012-10-31 16:37:21 EDT (Wed, 31 Oct 2012)
New Revision: 81128
URL: http://svn.boost.org/trac/boost/changeset/81128
Log:
Define BOOST_SP_HAS_SYNC when __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is set. Refs #7141.
Text files modified:
trunk/boost/smart_ptr/detail/sp_has_sync.hpp | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
Modified: trunk/boost/smart_ptr/detail/sp_has_sync.hpp
==============================================================================
--- trunk/boost/smart_ptr/detail/sp_has_sync.hpp (original)
+++ trunk/boost/smart_ptr/detail/sp_has_sync.hpp 2012-10-31 16:37:21 EDT (Wed, 31 Oct 2012)
@@ -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
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk