Bug 538056 - Signal handler for FPU exception is broken for Windows x64, r=m_kato,bsmedberg

toolkit/xre/nsSigHandlers.h:
	define x86 constants also for msvc x86-64

toolkit/xre/nsSigHandlers.cpp:
	Take into account different structure names for win64
This commit is contained in:
Mook 2009-12-29 01:48:02 -08:00
parent 08c615a602
commit 41da46c080
2 changed files with 6 additions and 1 deletions

View File

@ -399,8 +399,13 @@ void InstallSignalHandlers(const char *ProgramName)
#if defined(_M_IX86) || defined(_M_X64)
#ifdef _M_X64
#define X87CW(ctx) (ctx)->FltSave.ControlWord
#define X87SW(ctx) (ctx)->FltSave.StatusWord
#else
#define X87CW(ctx) (ctx)->FloatSave.ControlWord
#define X87SW(ctx) (ctx)->FloatSave.StatusWord
#endif
/*
* SSE traps raise these exception codes, which are defined in internal NT headers

View File

@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
#if defined(_M_IX86) || defined(__i386__) || defined(__i386) || defined(__amd64__)
#if defined(_M_IX86) || defined(_M_X64) || defined(__i386__) || defined(__i386) || defined(__amd64__)
/*
* x87 FPU Control Word: