--- np2/macos9/compiler.h 2004/02/21 17:52:04 1.9 +++ np2/macos9/compiler.h 2004/03/26 05:51:40 1.10 @@ -1,7 +1,11 @@ #include #include #include +#include #include +#if defined(CPUCORE_IA32) +#include +#endif #ifndef NP2GCC #include #endif @@ -24,6 +28,9 @@ typedef unsigned short UINT16; typedef signed int SINT32; typedef unsigned int UINT32; +typedef SInt64 SINT64; +typedef UInt64 UINT64; + typedef Boolean BOOL; typedef signed char TCHAR; typedef signed char CHAR; @@ -66,6 +73,11 @@ typedef unsigned char BYTE; // #define SUPPORT_NORMALDISP #define MEMOPTIMIZE 1 +#if defined(CPUCORE_IA32) +#define SUPPORT_CRT31KHZ +#define SUPPORT_PC9821 +#define IA32_PAGING_EACHSIZE +#endif #define SUPPORT_CRT15KHZ #define SUPPORT_HOSTDRV #define SUPPORT_SWSEEKSND @@ -74,3 +86,12 @@ typedef unsigned char BYTE; #define SOUNDRESERVE 80 + +#if defined(CPUCORE_IA32) +#define sigjmp_buf jmp_buf +#define sigsetjmp(env, mask) setjmp(env) +#define siglongjmp(env, val) longjmp(env, val) +#define msgbox(title, msg) TRACEOUT(("%s", title)); \ + TRACEOUT(("%s", msg)) +#endif +