From 4eb311f30c29c3a0acb570e20f08444213482f7a Mon Sep 17 00:00:00 2001 From: Makoto Kato Date: Wed, 26 May 2010 09:58:38 -0400 Subject: [PATCH] bug 567937: bustage on x64 build due to jsnativestack.cpp. r=dvander --- js/src/jsnativestack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/jsnativestack.cpp b/js/src/jsnativestack.cpp index cd13317af10..4c88cf2bf0c 100644 --- a/js/src/jsnativestack.cpp +++ b/js/src/jsnativestack.cpp @@ -114,7 +114,7 @@ GetNativeStackBase() void * GetNativeStackBaseImpl() { -# if defined(_WIN32) && defined(_MSC_VER) +# if defined(_M_IX86) && defined(_MSC_VER) /* * offset 0x18 from the FS segment register gives a pointer to * the thread information block for the current thread @@ -126,7 +126,7 @@ GetNativeStackBaseImpl() } return static_cast(pTib->StackBase); -# elif defined(_WIN64) && defined(_MSC_VER) +# elif defined(_M_X64) && defined(_MSC_VER) PNT_TIB64 pTib = reinterpret_cast(NtCurrentTeb()); return reinterpret_cast(pTib->StackBase);