[PATCH] wine/asm.h: Don't define __ASM_CFI when using clang as cross compiler
Martin Storsjo
martin at martin.st
Fri May 29 05:51:04 CDT 2020
Consolidate the existing checks for __APPLE__ and __clang__ into one,
but only use it as long as __GNUC__ is defined (clang operating in
gcc compatible mode, as opposed to MSVC compatible mode) and as
long as __SEH__ isn't defined (which it is while cross compiling
targeting windows, when SEH is used as unwind format).
Signed-off-by: Martin Storsjo <martin at martin.st>
---
include/wine/asm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/wine/asm.h b/include/wine/asm.h
index 7650d84a797..592f6383068 100644
--- a/include/wine/asm.h
+++ b/include/wine/asm.h
@@ -33,7 +33,7 @@
# define __ASM_STDCALL(name,args) __ASM_NAME(name)
#endif
-#if defined(__GCC_HAVE_DWARF2_CFI_ASM) || defined(__APPLE__) || defined(__clang__)
+#if defined(__GCC_HAVE_DWARF2_CFI_ASM) || (defined(__clang__) && defined(__GNUC__) && !defined(__SEH__))
# define __ASM_CFI(str) str
#else
# define __ASM_CFI(str)
--
2.17.1
More information about the wine-devel
mailing list