--- np2/win9x/compiler.h 2006/12/10 12:45:47 1.31 +++ np2/win9x/compiler.h 2011/02/17 10:36:05 1.39 @@ -1,15 +1,30 @@ +/** + * @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/02/17 10:36:05 $ + */ #define _WIN32_IE 0x0200 -#include -#include -#include -#include -#include +#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 +35,7 @@ #endif #define OSLINEBREAK_CRLF -#ifndef __GNUC__ +#if !defined(__GNUC__) typedef signed int SINT; typedef signed char SINT8; typedef unsigned char UINT8; @@ -36,7 +51,7 @@ 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; @@ -54,9 +69,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 @@ -74,15 +91,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) @@ -101,7 +116,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 @@ -113,6 +131,7 @@ typedef signed __int64 SINT64; #define SOUNDCALL __fastcall #define VRAMCALL __fastcall #define SCRNCALL __fastcall +#define VERMOUTHCL __fastcall #if defined(OSLANG_SJIS) #define SUPPORT_SJIS @@ -144,10 +163,13 @@ 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 #define SUPPORT_STATSAVE 10 @@ -155,6 +177,5 @@ typedef signed __int64 SINT64; #define SOUNDRESERVE 20 - #define SUPPORT_TEXTCNV