|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80473 - branches/release/boost/detail
From: vicente.botet_at_[hidden]
Date: 2012-09-09 14:48:53
Author: viboes
Date: 2012-09-09 14:48:52 EDT (Sun, 09 Sep 2012)
New Revision: 80473
URL: http://svn.boost.org/trac/boost/changeset/80473
Log:
Thread: Updated from trunk 1.52
Text files modified:
branches/release/boost/detail/interlocked.hpp | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
Modified: branches/release/boost/detail/interlocked.hpp
==============================================================================
--- branches/release/boost/detail/interlocked.hpp (original)
+++ branches/release/boost/detail/interlocked.hpp 2012-09-09 14:48:52 EDT (Sun, 09 Sep 2012)
@@ -33,6 +33,15 @@
#elif defined(_WIN32_WCE)
+#if _WIN32_WCE >= 0x600
+
+extern "C" long __cdecl _InterlockedIncrement( long volatile * );
+extern "C" long __cdecl _InterlockedDecrement( long volatile * );
+extern "C" long __cdecl _InterlockedCompareExchange( long volatile *, long, long );
+extern "C" long __cdecl _InterlockedExchange( long volatile *, long );
+extern "C" long __cdecl _InterlockedExchangeAdd( long volatile *, long );
+
+#else
// under Windows CE we still have old-style Interlocked* functions
extern "C" long __cdecl InterlockedIncrement( long* );
@@ -41,6 +50,8 @@
extern "C" long __cdecl InterlockedExchange( long*, long );
extern "C" long __cdecl InterlockedExchangeAdd( long*, long );
+#endif
+
# define BOOST_INTERLOCKED_INCREMENT InterlockedIncrement
# define BOOST_INTERLOCKED_DECREMENT InterlockedDecrement
# define BOOST_INTERLOCKED_COMPARE_EXCHANGE InterlockedCompareExchange
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