|
Boost-Commit : |
From: anthony_at_[hidden]
Date: 2008-05-23 15:53:07
Author: anthonyw
Date: 2008-05-23 15:53:06 EDT (Fri, 23 May 2008)
New Revision: 45689
URL: http://svn.boost.org/trac/boost/changeset/45689
Log:
The signature of _interlockedbittestandset changes between MSVC 2005 and MSVC 2008
Text files modified:
trunk/boost/thread/win32/thread_primitives.hpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
Modified: trunk/boost/thread/win32/thread_primitives.hpp
==============================================================================
--- trunk/boost/thread/win32/thread_primitives.hpp (original)
+++ trunk/boost/thread/win32/thread_primitives.hpp 2008-05-23 15:53:06 EDT (Fri, 23 May 2008)
@@ -280,8 +280,13 @@
#if defined(BOOST_MSVC) || defined(BOOST_INTEL_WIN)
#if _MSC_VER>=1400
+#if _MSC_VER==1400
+extern "C" unsigned char _interlockedbittestandset(long *a,long b);
+extern "C" unsigned char _interlockedbittestandreset(long *a,long b);
+#else
extern "C" unsigned char _interlockedbittestandset(volatile long *a,long b);
extern "C" unsigned char _interlockedbittestandreset(volatile long *a,long b);
+#endif
#pragma intrinsic(_interlockedbittestandset)
#pragma intrinsic(_interlockedbittestandreset)
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