From a1fc785ee53f535ab6d6d0454c459c1f2ba228be Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 1 Jul 2011 01:03:15 +0000 Subject: Redo Interlocked macros; see the ChangeLog --- implement.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/implement.h b/implement.h index 0d8a958..6b1ab4f 100644 --- a/implement.h +++ b/implement.h @@ -872,8 +872,13 @@ extern "C" # define PTW32_INTERLOCKED_EXCHANGE_ADD_LONG InterlockedExchangeAdd # define PTW32_INTERLOCKED_INCREMENT_LONG InterlockedIncrement # define PTW32_INTERLOCKED_DECREMENT_LONG InterlockedDecrement -# define PTW32_INTERLOCKED_COMPARE_EXCHANGE_PTR InterlockedCompareExchangePointer -# define PTW32_INTERLOCKED_EXCHANGE_PTR InterlockedExchangePointer +# if defined(_MSC_VER) && _MSC_VER <= 1300 +# define PTW32_INTERLOCKED_COMPARE_EXCHANGE_PTR InterlockedCompareExchange +# define PTW32_INTERLOCKED_EXCHANGE_PTR InterlockedExchange +# else +# define PTW32_INTERLOCKED_COMPARE_EXCHANGE_PTR InterlockedCompareExchangePointer +# define PTW32_INTERLOCKED_EXCHANGE_PTR InterlockedExchangePointer +# endif #endif #if defined(_WIN64) # define PTW32_INTERLOCKED_COMPARE_EXCHANGE_SIZE PTW32_INTERLOCKED_COMPARE_EXCHANGE_64 -- cgit v1.2.3