Gerald Pfeifer : ntdll: Replicate InterlockedCompareExchange64 to the Unix library.

Alexandre Julliard julliard at winehq.org
Mon Jun 8 15:19:55 CDT 2020


Module: wine
Branch: master
Commit: 0c14b1a962573ee125940f2008c646befe597226
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=0c14b1a962573ee125940f2008c646befe597226

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Sun Jun  7 00:38:02 2020 +0200

ntdll: Replicate InterlockedCompareExchange64 to the Unix library.

This fixes the build on FreeBSD/i386 with GCC 9.

Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/unix/unix_private.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/ntdll/unix/unix_private.h b/dlls/ntdll/unix/unix_private.h
index 292c7f05c9..03b92f9e91 100644
--- a/dlls/ntdll/unix/unix_private.h
+++ b/dlls/ntdll/unix/unix_private.h
@@ -23,6 +23,10 @@
 
 #include "unixlib.h"
 
+#ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
+#define InterlockedCompareExchange64(dest,xchg,cmp) RtlInterlockedCompareExchange64(dest,xchg,cmp)
+#endif
+
 struct debug_info
 {
     unsigned int str_pos;       /* current position in strings buffer */




More information about the wine-cvs mailing list