Commit 9d949605 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

include/winnt.h: MSC compiler doesn't support __asm keyword in x86_64 mode.

parent 92bcd0bf
......@@ -2221,14 +2221,6 @@ static FORCEINLINE struct _TEB * WINAPI NtCurrentTeb(void)
__asm__(".byte 0x65\n\tmovq (0x30),%0" : "=r" (teb));
return teb;
}
#elif defined(__x86_64__) && defined (_MSC_VER)
static FORCEINLINE struct _TEB * WINAPI NtCurrentTeb(void)
{
struct _TEB *teb;
__asm mov rax, gs:[0x30];
__asm mov teb, rax;
return teb;
}
#else
extern struct _TEB * WINAPI NtCurrentTeb(void);
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment