--- np2/win9xc/compiler.h 2003/10/18 00:35:35 1.2 +++ np2/win9xc/compiler.h 2003/12/08 00:55:34 1.7 @@ -1,20 +1,33 @@ #include #include #include +#include #define BYTESEX_LITTLE +#define OSLANG_SJIS +#define OSLINEBREAK_CRLF -#if 1 -#ifndef __cplusplus -#define DWORD xxx -#define WORD xxx -#endif -#endif +#ifndef __GNUC__ +typedef signed char SINT8; +typedef unsigned char UINT8; +typedef signed short SINT16; +typedef unsigned short UINT16; +typedef signed int SINT32; +typedef unsigned int UINT32; +#else +#include +typedef signed char SINT8; +typedef unsigned char UINT8; typedef short SINT16; typedef unsigned short UINT16; typedef int SINT32; -typedef unsigned int UINT32; +#endif + +// for RISC test +#define REG8 UINT +#define REG16 UINT + #include "common.h" #include "milstr.h" @@ -24,8 +37,8 @@ typedef unsigned int UINT32; #include "trace.h" #define GETTICK() GetTickCount() -#define GETRAND() rand() #define SPRINTF wsprintf +#define __ASSERT(s) #define LABEL __declspec(naked) #define RELEASE(x) if (x) {(x)->Release(); (x) = NULL;} @@ -41,6 +54,8 @@ typedef unsigned int UINT32; #define VRAMCALL __fastcall #define SCRNCALL __fastcall +#define SUPPORT_SJIS + // #define SUPPORT_8BPP // #define SUPPORT_16BPP // #define SUPPORT_24BPP @@ -48,3 +63,7 @@ typedef unsigned int UINT32; #define SUPPORT_NORMALDISP #define MEMOPTIMIZE 1 +#define SOUNDRESERVE 20 + +#define FASTCALL __fastcall +