RTX-Remix/Vibe-Reverse-Engineering-Signature-DB
0
1/**
2 * @file types.h
3 *
4 * Include OS headers and set compiler state.
5 */
6#ifndef _TYPES_H
7#define _TYPES_H
8
9#define WIN32_LEAN_AND_MEAN
10
11#include "resource.h"
12
13#include <windows.h>
14#include <mmsystem.h>
15#include <stdio.h>
16#include <stdlib.h>
17#include <ddraw.h>
18#include <dsound.h>
19#include <io.h>
20#include <limits.h>
21#include <math.h>
22#include <time.h>
23#include <process.h>
24#include <shlobj.h>
25#include <shellapi.h>
26
27#ifdef __GNUC__
28#include <ctype.h>
29#endif
30
31// tell Visual C++ to shut the hell up
32#ifdef _MSC_VER
33#pragma warning(disable : 4305) // truncation of int
34#pragma warning(disable : 4018) // signed/unsigned mismatch
35#pragma warning(disable : 4700) // used without having been initialized
36#pragma warning(disable : 4244) // conversion loss
37#pragma warning(disable : 4146) // negative unsigned
38#pragma warning(disable : 4996) // deprecation warning
39#pragma warning(disable : 4309) // VC2017: truncation of constant value
40#pragma warning(disable : 4267) // VC2017: conversion from 'size_t' to 'char'
41#pragma warning(disable : 4302) // VC2017: type cast truncation
42#pragma warning(disable : 4334) // VC2017: result of 32-bit shift implicitly converted to 64 bits
43#endif
44
45#include "defs.h"
46#include "enums.h"
47#include "structs.h"
48
49#if (_MSC_VER >= 800) && (_MSC_VER <= 1200)
50#define USE_ASM
51#endif
52
53// If defined, use copy protection [Default -> Defined]
54#if !defined(_DEBUG) && !defined(SPAWN)
55#define COPYPROT
56#endif
57
58// If defined, don't reload for debuggers [Default -> Undefined]
59// Note that with patch 1.03 the command line was hosed, this is required to pass arguments to the game
60#ifdef _DEBUG
61#define DEBUGGER
62#endif
63
64// If defined, don't fry the CPU [Default -> Undefined]
65#ifdef _DEBUG
66#define SLEEPFIX
67#endif
68
69// If defined, fix palette glitch in Windows Vista+ [Default -> Undefined]
70//#define COLORFIX
71
72#endif
73 