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

Alexandre Julliard julliard at winehq.org
Tue Jul 31 12:04:15 CDT 2012


Module: wine
Branch: master
Commit: 9d9496058fea447a30956695e93a795c556e8daa
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9d9496058fea447a30956695e93a795c556e8daa

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Tue Jul 31 12:38:24 2012 +0900

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

---

 include/winnt.h |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/include/winnt.h b/include/winnt.h
index c19eb47..2f78820 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




More information about the wine-cvs mailing list