--- np2/win9x/compiler.h 2003/10/16 17:58:39 1.1.1.1 +++ np2/win9x/compiler.h 2003/11/03 00:49:55 1.6 @@ -1,21 +1,35 @@ + +#define _WIN32_IE 0x0200 + #include #include #include #define BYTESEX_LITTLE -#if 1 -#ifndef __cplusplus -#define DWORD xxx -#define WORD xxx -#endif -#endif +#ifndef __GNUC__ typedef short SINT16; typedef unsigned short UINT16; typedef int SINT32; typedef unsigned int UINT32; +#else + +#include +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" @@ -30,6 +44,7 @@ typedef unsigned int UINT32; #define LABEL __declspec(naked) #define RELEASE(x) if (x) {(x)->Release(); (x) = NULL;} +#define OPNGENX86 #define VERMOUTH_LIB #define PARTSCALL __fastcall #define CPUCALL __fastcall @@ -47,3 +62,5 @@ typedef unsigned int UINT32; #define SUPPORT_32BPP #define SUPPORT_NORMALDISP +#define SOUNDRESERVE 20 +