From 180f7cf412c486a4f2f769b44c0ccf1223226ee3 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Fri, 17 Jul 2020 16:10:50 +0200 Subject: [PATCH] ntdll: Always use GNU _CI* functions implementation on clang. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/ntdll/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ntdll/misc.c b/dlls/ntdll/misc.c index 6960b52dcbb..4b7bb2296dd 100644 --- a/dlls/ntdll/misc.c +++ b/dlls/ntdll/misc.c @@ -158,7 +158,7 @@ double CDECL tan( double d ) return unix_funcs->tan( d ); } -#if defined(__GNUC__) && defined(__i386__) +#if (defined(__GNUC__) || defined(__clang__)) && defined(__i386__) #define FPU_DOUBLE(var) double var; \ __asm__ __volatile__( "fstpl %0;fwait" : "=m" (var) : ) @@ -220,7 +220,7 @@ LONGLONG CDECL _ftol(void) return (LONGLONG)x; } -#endif /* defined(__GNUC__) && defined(__i386__) */ +#endif /* (defined(__GNUC__) || defined(__clang__)) && defined(__i386__) */ static void NTDLL_mergesort( void *arr, void *barr, size_t elemsize, int(__cdecl *compar)(const void *, const void *),