|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r81127 - trunk/boost/smart_ptr/detail
From: pdimov_at_[hidden]
Date: 2012-10-31 16:30:28
Author: pdimov
Date: 2012-10-31 16:30:27 EDT (Wed, 31 Oct 2012)
New Revision: 81127
URL: http://svn.boost.org/trac/boost/changeset/81127
Log:
Enable __sync primitives on VACPP. Refs #6901.
Text files modified:
trunk/boost/smart_ptr/detail/sp_has_sync.hpp | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 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:30:27 EDT (Wed, 31 Oct 2012)
@@ -20,7 +20,9 @@
// are available.
//
-#if defined( __GNUC__ ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 ) && !defined( BOOST_SP_NO_SYNC )
+#ifndef BOOST_SP_NO_SYNC
+
+#if defined( __GNUC__ ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 )
#define BOOST_SP_HAS_SYNC
@@ -52,6 +54,12 @@
#undef BOOST_SP_HAS_SYNC
#endif
-#endif // __GNUC__ * 100 + __GNUC_MINOR__ >= 401
+#elif defined( __IBMCPP__ ) && ( __IBMCPP__ >= 1210 )
+
+#define BOOST_SP_HAS_SYNC
+
+#endif
+
+#endif // #ifndef BOOST_SP_NO_SYNC
#endif // #ifndef BOOST_SMART_PTR_DETAIL_SP_HAS_SYNC_HPP_INCLUDED
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