Gerald Pfeifer : ntdll: Replicate InterlockedCompareExchange64 to the Unix library.
Module: wine Branch: master Commit: 0c14b1a962573ee125940f2008c646befe597226 URL: https://source.winehq.org/git/wine.git/?a=commit;h=0c14b1a962573ee125940f200... Author: Gerald Pfeifer <gerald(a)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(a)pfeifer.com> Signed-off-by: Alexandre Julliard <julliard(a)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 */
participants (1)
-
Alexandre Julliard