diff options
author | rpj <rpj> | 2011-07-01 01:03:15 +0000 |
---|---|---|
committer | rpj <rpj> | 2011-07-01 01:03:15 +0000 |
commit | a1fc785ee53f535ab6d6d0454c459c1f2ba228be (patch) | |
tree | 7a6be796640369cfb61497ca2c0352f17b93b2c1 | |
parent | 1e0bb8a09c86d144f3779bc4d5724afe3f637922 (diff) |
Redo Interlocked macros; see the ChangeLog
-rw-r--r-- | implement.h | 9 |
1 files 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 |