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

Dmitry Timoshkov dmitry at baikal.ru
Mon Jul 30 22:38:24 CDT 2012


---
 include/winnt.h | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/include/winnt.h b/include/winnt.h
index b679017..51ed7b4 100644
--- a/include/winnt.h
+++ b/include/winnt.h
@@ -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
-- 
1.7.11.2




More information about the wine-patches mailing list