From 832ed079b9ca16bd3e383d6cc40d83a70f4aaa87 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 7 Dec 2013 19:24:44 +0200 Subject: [PATCH] Revert "Revert MSC_VER changes." This reverts commit 382fb54a52efba643aaa05046c2214479dee618e. --- 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 fb97629..57c85e1 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 ) && _MSC_VER >= 1310 +#elif defined( _MSC_VER ) 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 14af524..686d1f0 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) && _MSC_VER >= 1310 && ( defined(_M_IX86) || defined(_M_X64) ) +#if defined(_MSC_VER) && ( defined(_M_IX86) || defined(_M_X64) ) extern "C" void _mm_pause();