Martin Storsjö : include: Add a declaration of _InterlockedExchangeAdd64 for MSVC mode for aarch64.
Module: wine Branch: master Commit: 55177136cc189e71b50b67786309e86fcb533fb4 URL: https://source.winehq.org/git/wine.git/?a=commit;h=55177136cc189e71b50b67786... Author: Martin Storsjö <martin(a)martin.st> Date: Mon Apr 25 11:46:29 2022 +0300 include: Add a declaration of _InterlockedExchangeAdd64 for MSVC mode for aarch64. This matches the corresponding declaration for x86_64. Signed-off-by: Martin Storsjö <martin(a)martin.st> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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);
participants (1)
-
Alexandre Julliard