1/**
2 * The Forgotten Server - a free and open-source MMORPG server emulator
3 * Copyright (C) 2019 Mark Samman <mark.samman@gmail.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20#ifndef FS_DEFINITIONS_H_877452FEC245450C9F96B8FD268D8963
21#define FS_DEFINITIONS_H_877452FEC245450C9F96B8FD268D8963
22
23static constexpr auto STATUS_SERVER_NAME = "RD Core";
24static constexpr auto STATUS_SERVER_VERSION = "1.0";
25static constexpr auto STATUS_SERVER_DEVELOPERS = "";
26
27static constexpr auto CLIENT_VERSION_MIN = 1097;
28static constexpr auto CLIENT_VERSION_MAX = 1099;
29static constexpr auto CLIENT_VERSION_STR = "10.99";
30
31static constexpr auto AUTHENTICATOR_DIGITS = 6U;
32static constexpr auto AUTHENTICATOR_PERIOD = 30U;
33
34#ifndef __FUNCTION__
35#define __FUNCTION__ __func__
36#endif
37
38#ifndef _CRT_SECURE_NO_WARNINGS
39#define _CRT_SECURE_NO_WARNINGS
40#endif
41
42#ifndef _USE_MATH_DEFINES
43#define _USE_MATH_DEFINES
44#endif
45
46#include <cmath>
47
48#ifdef _WIN32
49#ifndef NOMINMAX
50#define NOMINMAX
51#endif
52
53#define WIN32_LEAN_AND_MEAN
54
55#ifdef _MSC_VER
56#ifdef NDEBUG
57#define _SECURE_SCL 0
58#define HAS_ITERATOR_DEBUGGING 0
59#endif
60
61#pragma warning(disable:4127) // conditional expression is constant
62#pragma warning(disable:4244) // 'argument' : conversion from 'type1' to 'type2', possible loss of data
63#pragma warning(disable:4250) // 'class1' : inherits 'class2::member' via dominance
64#pragma warning(disable:4267) // 'var' : conversion from 'size_t' to 'type', possible loss of data
65#pragma warning(disable:4319) // '~': zero extending 'unsigned int' to 'lua_Number' of greater size
66#pragma warning(disable:4351) // new behavior: elements of array will be default initialized
67#pragma warning(disable:4458) // declaration hides class member
68#endif
69
70#define strcasecmp _stricmp
71#define strncasecmp _strnicmp
72
73#ifndef _WIN32_WINNT
74// 0x0602: Windows 7
75#define _WIN32_WINNT 0x0602
76#endif
77#endif
78
79#ifndef M_PI
80#define M_PI 3.14159265358979323846
81#endif
82
83#endif
84