--- np2/win9x/compiler.h 2005/04/01 15:35:49 1.29 +++ np2/win9x/compiler.h 2011/03/09 00:22:18 1.40 @@ -1,15 +1,29 @@ - -#define _WIN32_IE 0x0200 - -#include -#include -#include -#include -#include +/** + * @file compiler.h + * @brief include file for standard system include files, + * or project specific include files that are used frequently, + * but are changed infrequently + * + * @author $Author: yui $ + * @date $Date: 2011/03/09 00:22:18 $ + */ + +#include "targetver.h" +#include +#if !defined(__GNUC__) +#include +#endif // !defined(__GNUC__) +#include +#include +#include #if defined(TRACE) -#include +#include #endif +#ifndef _T +#define _T(x) TEXT(x) +#endif // !_T + #define BYTESEX_LITTLE #if !defined(OSLANG_UTF8) #if !defined(_UNICODE) @@ -20,7 +34,7 @@ #endif #define OSLINEBREAK_CRLF -#ifndef __GNUC__ +#if !defined(__GNUC__) typedef signed int SINT; typedef signed char SINT8; typedef unsigned char UINT8; @@ -36,7 +50,8 @@ typedef unsigned __int64 UINT64; #define snprintf _snprintf #define vsnprintf _vsnprintf #else -#include +#include +typedef signed int SINT; typedef signed char SINT8; typedef unsigned char UINT8; typedef signed short SINT16; @@ -53,9 +68,11 @@ typedef signed __int64 SINT64; #define STOREINTELDWORD(a, b) *(UINT32 *)(a) = (b) #define STOREINTELWORD(a, b) *(UINT16 *)(a) = (b) +#if !defined(__GNUC__) #define sigjmp_buf jmp_buf #define sigsetjmp(env, mask) setjmp(env) #define siglongjmp(env, val) longjmp(env, val) +#endif // !defined(__GNUC__) #define msgbox(title, msg) __msgbox(title, msg) #define STRCALL __stdcall @@ -73,15 +90,13 @@ typedef signed __int64 SINT64; #define OEMSTRLEN strlen #endif - -#include "common.h" -#include "win32sub.h" -#include "milstr.h" -#include "_memory.h" -#include "rect.h" -#include "lstarray.h" -#include "trace.h" - +#include "common.h" +#include "win32sub.h" +#include "milstr.h" +#include "_memory.h" +#include "rect.h" +#include "lstarray.h" +#include "trace.h" #define GETTICK() GetTickCount() #if defined(TRACE) @@ -100,7 +115,10 @@ typedef signed __int64 SINT64; #define LABEL __declspec(naked) #define RELEASE(x) if (x) {(x)->Release(); (x) = NULL;} +#if !defined(_WIN64) #define OPNGENX86 +#endif + #define VERMOUTH_LIB #define MT32SOUND_DLL #define PARTSCALL __fastcall @@ -112,6 +130,7 @@ typedef signed __int64 SINT64; #define SOUNDCALL __fastcall #define VRAMCALL __fastcall #define SCRNCALL __fastcall +#define VERMOUTHCL __fastcall #if defined(OSLANG_SJIS) #define SUPPORT_SJIS @@ -143,7 +162,12 @@ typedef signed __int64 SINT64; #define SUPPORT_SASI #define SUPPORT_SCSI #if defined(TRACE) - #define SUPPORT_IDEIO +#define SUPPORT_IDEIO +#endif +#define SUPPORT_ARC +#define SUPPORT_ZLIB +#if !defined(_WIN64) +#define SUPPORT_DCLOCK #endif #define SUPPORT_RESUME @@ -152,6 +176,5 @@ typedef signed __int64 SINT64; #define SOUNDRESERVE 20 - #define SUPPORT_TEXTCNV