From: Jacek Caban jacek@codeweavers.com
--- include/wine/exception.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/wine/exception.h b/include/wine/exception.h index 8c91e02e17e..25c6f2af16d 100644 --- a/include/wine/exception.h +++ b/include/wine/exception.h @@ -251,7 +251,7 @@ typedef struct __tagWINE_FRAME
static inline EXCEPTION_REGISTRATION_RECORD *__wine_push_frame( EXCEPTION_REGISTRATION_RECORD *frame ) { -#if defined(__GNUC__) && defined(__i386__) +#if (defined(__GNUC__) || defined(__clang__)) && defined(__i386__) EXCEPTION_REGISTRATION_RECORD *prev; __asm__ __volatile__("movl %%fs:0,%0" "\n\tmovl %0,(%1)" @@ -268,7 +268,7 @@ static inline EXCEPTION_REGISTRATION_RECORD *__wine_push_frame( EXCEPTION_REGIST
static inline EXCEPTION_REGISTRATION_RECORD *__wine_pop_frame( EXCEPTION_REGISTRATION_RECORD *frame ) { -#if defined(__GNUC__) && defined(__i386__) +#if (defined(__GNUC__) || defined(__clang__)) && defined(__i386__) __asm__ __volatile__("movl %0,%%fs:0" : : "r" (frame->Prev) : "memory" ); return frame->Prev; @@ -282,7 +282,7 @@ static inline EXCEPTION_REGISTRATION_RECORD *__wine_pop_frame( EXCEPTION_REGISTR
static inline EXCEPTION_REGISTRATION_RECORD *__wine_get_frame(void) { -#if defined(__GNUC__) && defined(__i386__) +#if (defined(__GNUC__) || defined(__clang__)) && defined(__i386__) EXCEPTION_REGISTRATION_RECORD *ret; __asm__ __volatile__("movl %%fs:0,%0" : "=r" (ret) ); return ret;