From 382fb54a52efba643aaa05046c2214479dee618e Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 29 Sep 2013 10:43:15 +0000 Subject: [PATCH] Revert MSC_VER changes. [SVN r85993] --- include/boost/smart_ptr/detail/spinlock_w32.hpp | 2 +- include/boost/smart_ptr/detail/yield_k.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/smart_ptr/detail/spinlock_w32.hpp b/include/boost/smart_ptr/detail/spinlock_w32.hpp index f383537..fac21fe 100644 --- a/include/boost/smart_ptr/detail/spinlock_w32.hpp +++ b/include/boost/smart_ptr/detail/spinlock_w32.hpp @@ -24,7 +24,7 @@ #define BOOST_COMPILER_FENCE __memory_barrier(); -#elif defined( _MSC_VER ) +#elif defined( _MSC_VER ) && _MSC_VER >= 1310 extern "C" void _ReadWriteBarrier(); #pragma intrinsic( _ReadWriteBarrier ) diff --git a/include/boost/smart_ptr/detail/yield_k.hpp b/include/boost/smart_ptr/detail/yield_k.hpp index 1bce751..e3610f1 100644 --- a/include/boost/smart_ptr/detail/yield_k.hpp +++ b/include/boost/smart_ptr/detail/yield_k.hpp @@ -27,7 +27,7 @@ // BOOST_SMT_PAUSE -#if defined(_MSC_VER) && ( defined(_M_IX86) || defined(_M_X64) ) +#if defined(_MSC_VER) && _MSC_VER >= 1310 && ( defined(_M_IX86) || defined(_M_X64) ) extern "C" void _mm_pause(); #pragma intrinsic( _mm_pause )