include: Avoid redefining _InterlockedCompareExchange128 as inline.
Note the _InterlockedCompareExchange128 for a x86_64 machine is only defined as intrinsic when -mcx16 option is enabled. But we use always use the intrinsic definition on x86_64 so that compilation done without the -mcx16 could be detected (on C++ only). And the intrinsic has been added recently to aarch64 machine for clang. Signed-off-by: Eric Pouech <epouech@codeweavers.com>
This commit is contained in:
parent
72c4adc036
commit
46ab4f0ce7
1 changed files with 1 additions and 1 deletions
|
@ -7184,7 +7184,7 @@ static FORCEINLINE DECLSPEC_NORETURN void __fastfail(unsigned int code)
|
|||
|
||||
#define InterlockedCompareExchange128 _InterlockedCompareExchange128
|
||||
|
||||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
#if defined(_MSC_VER) && (!defined(__clang__) || !defined(__aarch64__) || __has_builtin(_InterlockedCompareExchange128))
|
||||
|
||||
#pragma intrinsic(_InterlockedCompareExchange128)
|
||||
unsigned char _InterlockedCompareExchange128(volatile __int64 *, __int64, __int64, __int64 *);
|
||||
|
|
Loading…
Add table
Reference in a new issue