wine/asm.h: Don't define __ASM_CFI when using clang as cross compiler.
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@martin.st> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fb1d46fc0a
commit
264bd4fc84
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue