forked from Flatlander57/TheImaginedServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefinitions.h
153 lines (131 loc) · 3.72 KB
/
definitions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
////////////////////////////////////////////////////////////////////////
// OpenTibia - an opensource roleplaying game
////////////////////////////////////////////////////////////////////////
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
////////////////////////////////////////////////////////////////////////
#ifndef __DEFINITIONS__
#define __DEFINITIONS__
#define CLIENT_VERSION_MIN 1010
#define CLIENT_VERSION_MAX 1010
#define CLIENT_VERSION_STRING "Only clients with protocol 10.10 allowed!"
#define CLIENT_VERSION_DAT 0
#define CLIENT_VERSION_SPR 0
#define CLIENT_VERSION_PIC 0
//#define CLIENT_VERSION_DATA
#define SOFTWARE_NAME "The Imagine Server"
#define SOFTWARE_VERSION "0.1.0"
#define SOFTWARE_CODENAME "Flying Tyrannous"
#define SOFTWARE_DEVELOPERS "Flatlander and Sportacus"
#define SOFTWARE_PROTOCOL "10.10"
#define VERSION_CHECK "http://forgottenserver.otland.net/version.xml"
#define VERSION_PATCH 0
#define VERSION_TIMESTAMP 1373213661
#define VERSION_BUILD 0
#define VERSION_DATABASE 40
#undef MULTI_SQL_DRIVERS
#define SQL_DRIVERS __USE_SQLITE__+__USE_MYSQL__+__USE_PGSQL__
#if SQL_DRIVERS > 1
#define MULTI_SQL_DRIVERS
#endif
#define MAX_RAND_RANGE 10000000
#ifndef __FUNCTION__
#define __FUNCTION__ __func__
#endif
#define BOOST_ASIO_ENABLE_CANCELIO 1
#ifdef _MSC_VER
#define __PRETTY_FUNCTION__ __FUNCDNAME__
#ifndef NOMINMAX
#define NOMINMAX
#endif
#ifdef NDEBUG
#define _SECURE_SCL 0
#define HAS_ITERATOR_DEBUGGING 0
#endif
#include <cstring>
#define atoll _atoi64
#if VISUALC_VERSION < 10
typedef unsigned long long uint64_t;
typedef signed long long int64_t;
typedef unsigned int uint32_t;
typedef signed int int32_t;
typedef unsigned short uint16_t;
typedef signed short int16_t;
typedef unsigned char uint8_t;
typedef signed char int8_t;
#endif
#pragma warning(disable:4786) // msvc too long debug names in stl
#pragma warning(disable:4250) // 'class1' : inherits 'class2::member' via dominance
#pragma warning(disable:4244)
#pragma warning(disable:4267)
#pragma warning(disable:4018)
#pragma warning(disable:4309)
#pragma warning(disable:4996) // '_ftime64' : this function or variable may be unsafe
#ifndef _WIN32
#define _WIN32
#endif
#ifndef WIN32
#define WIN32
#endif
#ifndef __WINDOWS__
#define __WINDOWS__
#endif
#ifndef WINDOWS
#define WINDOWS
#endif
#else
#if defined _WIN32 || defined WIN32 || defined __WINDOWS__ || defined WINDOWS
#ifndef _WIN32
#define _WIN32
#endif
#ifndef WIN32
#define WIN32
#endif
#ifndef __WINDOWS__
#define __WINDOWS__
#endif
#ifndef WINDOWS
#define WINDOWS
#endif
#endif
#ifdef __CYGWIN__
#undef WIN32
#undef _WIN32
#undef WINDOWS
#undef __WINDOWS__
#define HAVE_ERRNO_AS_DEFINE
#endif
#endif
#ifdef __WINDOWS__
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif
//Windows 2000 0x0500
//Windows XP 0x0501
//Windows 2003 0x0502
//Windows Vista 0x0600
//Windows Seven 0x0601
#define _WIN32_WINNT 0x0501
#elif defined __GNUC__
#define __USE_ZLIB__
#endif
#ifdef __MINGW32__
#define XML_GCC_FREE
#endif
#ifdef XML_GCC_FREE
#define xmlFree(s) free(s)
#endif
#ifndef __EXCEPTION_TRACER__
#define DEBUG_REPORT
#endif
#endif