From 97d07a25bb6472fb62328bd909f4de5c10afd651 Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Thu, 20 Aug 2020 16:38:40 +0800 Subject: [PATCH] TD-1090 minor changes --- src/os/inc/osWindows.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/inc/osWindows.h b/src/os/inc/osWindows.h index 3e94a63dd8..0dbc3aac9c 100644 --- a/src/os/inc/osWindows.h +++ b/src/os/inc/osWindows.h @@ -230,7 +230,7 @@ void wordfree(wordexp_t *pwordexp); #define atomic_exchange_16(ptr, val) _InterlockedExchange16((short volatile*)(ptr), (short)(val)) #define atomic_exchange_32(ptr, val) _InterlockedExchange((long volatile*)(ptr), (long)(val)) #define atomic_exchange_64(ptr, val) _InterlockedExchange64((__int64 volatile*)(ptr), (__int64)(val)) - #ifdef _InterlockedExchangePointer + #ifdef _WIN64 #define atomic_exchange_ptr(ptr, val) _InterlockedExchangePointer((void* volatile*)(ptr), (void*)(val)) #else #define atomic_exchange_ptr(ptr, val) _InlineInterlockedExchangePointer((void* volatile*)(ptr), (void*)(val)) -- GitLab