--- np2/win9x/compiler.h 2003/10/21 11:22:05 1.4 +++ np2/win9x/compiler.h 2004/02/03 08:24:40 1.12 @@ -1,25 +1,37 @@ + +#define _WIN32_IE 0x0200 + #include #include #include #define BYTESEX_LITTLE +#define OSLANG_SJIS +#define OSLINEBREAK_CRLF -#ifndef __GNUC__ -typedef short SINT16; +#ifndef __GNUC__ +typedef signed char SINT8; +typedef unsigned char UINT8; +typedef signed short SINT16; typedef unsigned short UINT16; typedef 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; - #endif +#define LOADINTELDWORD(a) (*((UINT32 *)(a))) +#define LOADINTELWORD(a) (*((UINT16 *)(a))) +#define STOREINTELDWORD(a, b) *(UINT32 *)(a) = (b) +#define STOREINTELWORD(a, b) *(UINT16 *)(a) = (b) + + #include "common.h" #include "milstr.h" #include "_memory.h" @@ -27,12 +39,13 @@ typedef int SINT32; #include "lstarray.h" #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;} +#define LABEL __declspec(naked) +#define RELEASE(x) if (x) {(x)->Release(); (x) = NULL;} #define OPNGENX86 #define VERMOUTH_LIB @@ -46,9 +59,21 @@ typedef int SINT32; #define VRAMCALL __fastcall #define SCRNCALL __fastcall +#define SUPPORT_SJIS + #define SUPPORT_8BPP #define SUPPORT_16BPP #define SUPPORT_24BPP #define SUPPORT_32BPP #define SUPPORT_NORMALDISP +#define SUPPORT_ROMEO +#define SUPPORT_PC9861K +#define SUPPORT_S98 +#define SUPPORT_KEYDISP +#define SUPPORT_HOSTDRV +#define SUPPORT_SASI +#define SUPPORT_SCSI + +#define SOUNDRESERVE 20 +