--- np2/macos9/compiler.h 2003/11/09 21:57:04 1.2 +++ np2/macos9/compiler.h 2004/08/16 08:33:02 1.11 @@ -1,27 +1,40 @@ #include #include #include +#include #include +#if defined(CPUCORE_IA32) +#include +#endif #ifndef NP2GCC #include #endif #define MACOS #define BYTESEX_BIG +#define OSLANG_SJIS +#define OSLINEBREAK_CR -typedef char TCHAR; -typedef unsigned char BYTE; -typedef int SINT; +typedef signed int SINT; typedef unsigned int UINT; -typedef short SINT16; +typedef signed char SINT8; +typedef unsigned char UINT8; + +typedef signed short SINT16; typedef unsigned short UINT16; -typedef int SINT32; +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; +typedef unsigned char BYTE; #define MAX_PATH 260 @@ -43,12 +56,14 @@ typedef Boolean BOOL; #include "trace.h" #define GETTICK() macos_gettick() -#define GETRAND() rand() #define SPRINTF sprintf +#define __ASSERT(s) #define VERMOUTH_LIB // #define SOUND_CRITICAL +#define SUPPORT_SJIS + // #define SUPPORT_8BPP #ifdef NP2GCC #define SUPPORT_16BPP @@ -58,5 +73,28 @@ typedef Boolean BOOL; // #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 +#define SUPPORT_SASI +#define SUPPORT_SCSI + +#define SUPPORT_RESUME +#define SUPPORT_STATSAVE + #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 +