From f2d4b67a484746375e3d6f8aed7270d0b0655aed Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 31 Oct 2012 20:30:27 +0000 Subject: [PATCH] Enable __sync primitives on VACPP. Refs #6901. [SVN r81127] --- include/boost/smart_ptr/detail/sp_has_sync.hpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/boost/smart_ptr/detail/sp_has_sync.hpp b/include/boost/smart_ptr/detail/sp_has_sync.hpp index c266e75..3a1d346 100644 --- a/include/boost/smart_ptr/detail/sp_has_sync.hpp +++ b/include/boost/smart_ptr/detail/sp_has_sync.hpp @@ -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