--- np2/win9x/compiler.h 2003/10/18 07:28:50 1.2 +++ 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" @@ -48,3 +62,5 @@ typedef unsigned int UINT32; #define SUPPORT_32BPP #define SUPPORT_NORMALDISP +#define SOUNDRESERVE 20 +