--- np2/macosx/compiler.h 2004/02/16 05:31:31 1.13 +++ np2/macosx/compiler.h 2005/05/20 17:25:03 1.22 @@ -2,9 +2,6 @@ #include #include #include -#ifndef NP2GCC -#include -#endif #define MACOS #define BYTESEX_BIG @@ -30,6 +27,8 @@ typedef signed char CHAR; typedef unsigned char BYTE; +#define INLINE inline + #define MAX_PATH 260 #define ZeroMemory(a, b) memset((a), 0 , (b)) @@ -39,6 +38,11 @@ typedef unsigned char BYTE; #define max(a, b) (((a)>(b))?(a):(b)) #define min(a, b) (((a)<(b))?(a):(b)) +#define BRESULT UINT8 +#define OEMCHAR char +#define OEMTEXT(string) string +#define OEMSPRINTF sprintf +#define OEMSTRLEN strlen #include "common.h" #include "macossub.h" @@ -50,12 +54,19 @@ typedef unsigned char BYTE; #define GETTICK() macos_gettick() #define SPRINTF sprintf +#define STRLEN strlen #define __ASSERT(s) #define VERMOUTH_LIB // #define SOUND_CRITICAL +#if defined(OSLANG_SJIS) #define SUPPORT_SJIS +#elif defined(OSLANG_UTF8) +#define SUPPORT_UTF8 +#else +#define SUPPORT_ANK +#endif // #define SUPPORT_8BPP #ifdef NP2GCC @@ -66,22 +77,35 @@ 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_S98 -#define SUPPORT_WAVEMIX +#define SUPPORT_SWSEEKSND #define SUPPORT_HOSTDRV #define SUPPORT_SASI #define SUPPORT_SCSI +#define SUPPORT_KEYDISP +#define SUPPORT_SOFTKBD 0 +#define USE_RESUME #define SOUNDRESERVE 80 #if defined(CPUCORE_IA32) -typedef signed long long SINT64; -typedef unsigned long long UINT64; -#define INLINE inline +typedef SInt64 SINT64; +typedef UInt64 UINT64; #define FASTCALL #define CPUCALL #define MEMCALL -typedef UINT64 DWORD; -typedef UINT32 WORD; +#define SUPPORT_PC9821 +#define SUPPORT_CRT31KHZ +#define IA32_PAGING_EACHSIZE +#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