зеркало из https://github.com/mozilla/pjs.git
Build fixes for MSVC 7.1 and mingw (bug 451881, patch from neil@parkwaycc.co.uk).
This commit is contained in:
Родитель
109db8818d
Коммит
57f671ba0a
|
@ -45,7 +45,10 @@ namespace nanojit
|
|||
{
|
||||
#define is_trace_skip_tramp(op) ((op) <= LIR_tramp)
|
||||
|
||||
enum LOpcode __msvc_only(: unsigned)
|
||||
enum LOpcode
|
||||
#if defined(_MSC_VER) && _MSC_VER >= 1400
|
||||
: unsigned
|
||||
#endif
|
||||
{
|
||||
// flags; upper bits reserved
|
||||
LIR64 = 0x40, // result is double or quad
|
||||
|
|
|
@ -48,11 +48,8 @@
|
|||
|
||||
#define FASTCALL JS_FASTCALL
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define __msvc_only(x) x
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#else
|
||||
#define __msvc_only(x)
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
|
|
Загрузка…
Ссылка в новой задаче