[PATCH] include: Add a declaration of _InterlockedExchangeAdd64 for MSVC mode for aarch64

Martin Storsjö martin at martin.st
Mon Apr 25 03:46:29 CDT 2022


This matches the corresponding declaration for x86_64.

Signed-off-by: Martin Storsjö <martin at martin.st>
---
 include/winnt.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/winnt.h b/include/winnt.h
index 31c6b7d69e9..e853ddbc7ae 100644
--- a/include/winnt.h
+++ b/include/winnt.h
@@ -6371,6 +6371,10 @@ static FORCEINLINE void MemoryBarrier(void)
 
 #elif defined(__aarch64__)
 
+#pragma intrinsic(_InterlockedExchangeAdd64)
+
+long long _InterlockedExchangeAdd64(long long volatile *, long long);
+
 static FORCEINLINE void MemoryBarrier(void)
 {
     __dmb(_ARM64_BARRIER_SY);
-- 
2.25.1




More information about the wine-devel mailing list