| version 1.24, 2005/02/12 12:13:59 | version 1.40, 2011/03/09 00:22:18 | 
| Line 1 | Line 1 | 
|  | /** | 
| #define _WIN32_IE       0x0200 | * @file        compiler.h | 
|  | * @brief       include file for standard system include files, | 
| #include        <windows.h> | *                      or project specific include files that are used frequently, | 
| #include        <tchar.h> | *                      but are changed infrequently | 
| #include        <stdio.h> | * | 
| #include        <stddef.h> | * @author      $Author$ | 
| #include        <setjmp.h> | * @date        $Date$ | 
|  | */ | 
|  |  | 
|  | #include "targetver.h" | 
|  | #include <windows.h> | 
|  | #if !defined(__GNUC__) | 
|  | #include <tchar.h> | 
|  | #endif  // !defined(__GNUC__) | 
|  | #include <stdio.h> | 
|  | #include <stddef.h> | 
|  | #include <setjmp.h> | 
 | #if defined(TRACE) | #if defined(TRACE) | 
| #include        <assert.h> | #include <assert.h> | 
 | #endif | #endif | 
 |  |  | 
 |  | #ifndef _T | 
 |  | #define _T(x)   TEXT(x) | 
 |  | #endif  // !_T | 
 |  |  | 
 | #define BYTESEX_LITTLE | #define BYTESEX_LITTLE | 
| #if !defined(UNICODE) | #if !defined(OSLANG_UTF8) | 
|  | #if !defined(_UNICODE) | 
 | #define OSLANG_SJIS | #define OSLANG_SJIS | 
 | #else | #else | 
 | #define OSLANG_UCS2 | #define OSLANG_UCS2 | 
 | #endif | #endif | 
 |  | #endif | 
 | #define OSLINEBREAK_CRLF | #define OSLINEBREAK_CRLF | 
 |  |  | 
| #ifndef __GNUC__ | #if !defined(__GNUC__) | 
 | typedef signed int                      SINT; | typedef signed int                      SINT; | 
 | typedef signed char                     SINT8; | typedef signed char                     SINT8; | 
 | typedef unsigned char           UINT8; | typedef unsigned char           UINT8; | 
| Line 34  typedef unsigned __int64 UINT64; | Line 50  typedef unsigned __int64 UINT64; | 
 | #define snprintf                        _snprintf | #define snprintf                        _snprintf | 
 | #define vsnprintf                       _vsnprintf | #define vsnprintf                       _vsnprintf | 
 | #else | #else | 
| #include        <stdlib.h> | #include <stdlib.h> | 
|  | typedef signed int                      SINT; | 
 | typedef signed char                     SINT8; | typedef signed char                     SINT8; | 
 | typedef unsigned char           UINT8; | typedef unsigned char           UINT8; | 
 | typedef signed short            SINT16; | typedef signed short            SINT16; | 
| Line 51  typedef signed __int64  SINT64; | Line 68  typedef signed __int64  SINT64; | 
 | #define STOREINTELDWORD(a, b)   *(UINT32 *)(a) = (b) | #define STOREINTELDWORD(a, b)   *(UINT32 *)(a) = (b) | 
 | #define STOREINTELWORD(a, b)    *(UINT16 *)(a) = (b) | #define STOREINTELWORD(a, b)    *(UINT16 *)(a) = (b) | 
 |  |  | 
 |  | #if !defined(__GNUC__) | 
 | #define sigjmp_buf                              jmp_buf | #define sigjmp_buf                              jmp_buf | 
 | #define sigsetjmp(env, mask)    setjmp(env) | #define sigsetjmp(env, mask)    setjmp(env) | 
 | #define siglongjmp(env, val)    longjmp(env, val) | #define siglongjmp(env, val)    longjmp(env, val) | 
| #define msgbox(title, msg)              MessageBox(NULL, msg, title, MB_OK) | #endif  // !defined(__GNUC__) | 
|  | #define msgbox(title, msg)              __msgbox(title, msg) | 
 |  |  | 
 | #define STRCALL         __stdcall | #define STRCALL         __stdcall | 
 |  |  | 
 | #define BRESULT                         UINT8 | #define BRESULT                         UINT8 | 
 |  | #if !defined(OSLANG_UTF8) | 
 | #define OEMCHAR                         TCHAR | #define OEMCHAR                         TCHAR | 
 | #define OEMTEXT(string)         _T(string) | #define OEMTEXT(string)         _T(string) | 
 | #define OEMSPRINTF                      wsprintf | #define OEMSPRINTF                      wsprintf | 
 | #define OEMSTRLEN                       lstrlen | #define OEMSTRLEN                       lstrlen | 
 |  | #else | 
 |  | #define OEMCHAR                         char | 
 |  | #define OEMTEXT(string)         string | 
 |  | #define OEMSPRINTF                      sprintf | 
 |  | #define OEMSTRLEN                       strlen | 
 |  | #endif | 
 |  |  | 
|  | #include "common.h" | 
| #include        "common.h" | #include "win32sub.h" | 
| #include        "milstr.h" | #include "milstr.h" | 
| #include        "_memory.h" | #include "_memory.h" | 
| #include        "rect.h" | #include "rect.h" | 
| #include        "lstarray.h" | #include "lstarray.h" | 
| #include        "trace.h" | #include "trace.h" | 
|  |  | 
 |  |  | 
 | #define GETTICK()                       GetTickCount() | #define GETTICK()                       GetTickCount() | 
 | #if defined(TRACE) | #if defined(TRACE) | 
| Line 79  typedef signed __int64  SINT64; | Line 104  typedef signed __int64  SINT64; | 
 | #else | #else | 
 | #define __ASSERT(s) | #define __ASSERT(s) | 
 | #endif | #endif | 
| #if defined(UNICODE) | #if defined(_UNICODE) | 
 | #define SPRINTF                         sprintf | #define SPRINTF                         sprintf | 
 | #define STRLEN                          strlen | #define STRLEN                          strlen | 
 | #else | #else | 
| Line 90  typedef signed __int64  SINT64; | Line 115  typedef signed __int64  SINT64; | 
 | #define LABEL                           __declspec(naked) | #define LABEL                           __declspec(naked) | 
 | #define RELEASE(x)                      if (x) {(x)->Release(); (x) = NULL;} | #define RELEASE(x)                      if (x) {(x)->Release(); (x) = NULL;} | 
 |  |  | 
 |  | #if !defined(_WIN64) | 
 | #define OPNGENX86 | #define OPNGENX86 | 
 |  | #endif | 
 |  |  | 
 | #define VERMOUTH_LIB | #define VERMOUTH_LIB | 
 |  | #define MT32SOUND_DLL | 
 | #define PARTSCALL       __fastcall | #define PARTSCALL       __fastcall | 
 | #define CPUCALL         __fastcall | #define CPUCALL         __fastcall | 
 | #define MEMCALL         __fastcall | #define MEMCALL         __fastcall | 
| Line 101  typedef signed __int64  SINT64; | Line 130  typedef signed __int64  SINT64; | 
 | #define SOUNDCALL       __fastcall | #define SOUNDCALL       __fastcall | 
 | #define VRAMCALL        __fastcall | #define VRAMCALL        __fastcall | 
 | #define SCRNCALL        __fastcall | #define SCRNCALL        __fastcall | 
 |  | #define VERMOUTHCL      __fastcall | 
 |  |  | 
| #if !defined(UNICODE) | #if defined(OSLANG_SJIS) | 
 | #define SUPPORT_SJIS | #define SUPPORT_SJIS | 
 |  | #elif defined(OSLANG_UTF8) | 
 |  | #define SUPPORT_UTF8 | 
 | #else | #else | 
 | #define SUPPORT_ANK | #define SUPPORT_ANK | 
 | #endif | #endif | 
| Line 129  typedef signed __int64  SINT64; | Line 161  typedef signed __int64  SINT64; | 
 | #define SUPPORT_HOSTDRV | #define SUPPORT_HOSTDRV | 
 | #define SUPPORT_SASI | #define SUPPORT_SASI | 
 | #define SUPPORT_SCSI | #define SUPPORT_SCSI | 
| // #define      SUPPORT_IDEIO | #if defined(TRACE) | 
|  | #define SUPPORT_IDEIO | 
|  | #endif | 
|  | #define SUPPORT_ARC | 
|  | #define SUPPORT_ZLIB | 
|  | #if !defined(_WIN64) | 
|  | #define SUPPORT_DCLOCK | 
|  | #endif | 
 |  |  | 
 | #define SUPPORT_RESUME | #define SUPPORT_RESUME | 
 | #define SUPPORT_STATSAVE        10 | #define SUPPORT_STATSAVE        10 | 
| Line 137  typedef signed __int64  SINT64; | Line 176  typedef signed __int64  SINT64; | 
 |  |  | 
 | #define SOUNDRESERVE    20 | #define SOUNDRESERVE    20 | 
 |  |  | 
 |  | #define SUPPORT_TEXTCNV | 
 |  |  |