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

This commit is contained in:
Dmitry Timoshkov 2012-07-31 12:38:24 +09:00 committed by Alexandre Julliard
parent 92bcd0bf10
commit 9d9496058f
1 changed files with 0 additions and 8 deletions

View File

@ -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