--- np2/macosx/compiler.h 2004/08/16 07:51:15 1.21 +++ 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,6 +77,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_S98 #define SUPPORT_SWSEEKSND @@ -73,7 +89,7 @@ typedef unsigned char BYTE; #define SUPPORT_SASI #define SUPPORT_SCSI #define SUPPORT_KEYDISP -#define SUPPORT_SOFTKBD +#define SUPPORT_SOFTKBD 0 #define USE_RESUME #define SOUNDRESERVE 80 @@ -81,12 +97,15 @@ typedef unsigned char BYTE; #if defined(CPUCORE_IA32) typedef SInt64 SINT64; typedef UInt64 UINT64; -#define INLINE inline #define FASTCALL #define CPUCALL #define MEMCALL #define SUPPORT_PC9821 #define SUPPORT_CRT31KHZ #define IA32_PAGING_EACHSIZE -static inline void msgbox(char* title, char* msg) { } +#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