mirror of
https://github.com/MariaDB/server.git
synced 2025-10-31 15:50:51 +03:00
more windows fixes
include/atomic/generic-msvc.h: explicit cast from volatile int32 * to volatile LONG *
This commit is contained in:
@@ -52,8 +52,8 @@ LONG _InterlockedExchangeAdd (LONG volatile *Addend, LONG Value);
|
|||||||
#endif /*_M_IX86*/
|
#endif /*_M_IX86*/
|
||||||
|
|
||||||
#define MY_ATOMIC_MODE "msvc-intrinsics"
|
#define MY_ATOMIC_MODE "msvc-intrinsics"
|
||||||
#define IL_EXCHG_ADD32 InterlockedExchangeAdd
|
#define IL_EXCHG_ADD32(X,Y) InterlockedExchangeAdd((volatile LONG *)(X),(Y))
|
||||||
#define IL_COMP_EXCHG32 InterlockedCompareExchange
|
#define IL_COMP_EXCHG32(X,Y,Z) InterlockedCompareExchange((volatile LONG *)(X),(Y),(Z))
|
||||||
#define IL_COMP_EXCHGptr InterlockedCompareExchangePointer
|
#define IL_COMP_EXCHGptr InterlockedCompareExchangePointer
|
||||||
#define IL_EXCHG32 InterlockedExchange
|
#define IL_EXCHG32 InterlockedExchange
|
||||||
#define IL_EXCHGptr InterlockedExchangePointer
|
#define IL_EXCHGptr InterlockedExchangePointer
|
||||||
|
|||||||
Reference in New Issue
Block a user