summaryrefslogtreecommitdiffstats
path: root/source/Globals.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-20 09:14:30 +0200
committermadmaxoft <github@xoft.cz>2013-10-20 09:14:30 +0200
commit0258213d243c9d13cc3e50a4e2708552932bb097 (patch)
tree4f232ee448faf9749a82304081b7f4c7634a2ffc /source/Globals.h
parentAPIDump: Undocumented member variables are listed. (diff)
parentAdded a string reserve. (diff)
downloadcuberite-0258213d243c9d13cc3e50a4e2708552932bb097.tar
cuberite-0258213d243c9d13cc3e50a4e2708552932bb097.tar.gz
cuberite-0258213d243c9d13cc3e50a4e2708552932bb097.tar.bz2
cuberite-0258213d243c9d13cc3e50a4e2708552932bb097.tar.lz
cuberite-0258213d243c9d13cc3e50a4e2708552932bb097.tar.xz
cuberite-0258213d243c9d13cc3e50a4e2708552932bb097.tar.zst
cuberite-0258213d243c9d13cc3e50a4e2708552932bb097.zip
Diffstat (limited to 'source/Globals.h')
-rw-r--r--source/Globals.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/source/Globals.h b/source/Globals.h
index 1e531f7f3..ef79e4cf1 100644
--- a/source/Globals.h
+++ b/source/Globals.h
@@ -12,24 +12,24 @@
#if defined(_MSC_VER)
// MSVC produces warning C4481 on the override keyword usage, so disable the warning altogether
#pragma warning(disable:4481)
-
+
// Disable some warnings that we don't care about:
#pragma warning(disable:4100)
#define OBSOLETE __declspec(deprecated)
-
+
// No alignment needed in MSVC
#define ALIGN_8
#define ALIGN_16
-
+
#elif defined(__GNUC__)
// TODO: Can GCC explicitly mark classes as abstract (no instances can be created)?
#define abstract
-
+
// TODO: Can GCC mark virtual methods as overriding (forcing them to have a virtual function of the same signature in the base class)
#define override
-
+
#define OBSOLETE __attribute__((deprecated))
#define ALIGN_8 __attribute__((aligned(8)))
@@ -41,13 +41,13 @@
#else
#error "You are using an unsupported compiler, you might need to #define some stuff here for your compiler"
-
+
/*
// Copy and uncomment this into another #elif section based on your compiler identification
-
+
// Explicitly mark classes as abstract (no instances can be created)
#define abstract
-
+
// Mark virtual methods as overriding (forcing them to have a virtual function of the same signature in the base class)
#define override
@@ -92,17 +92,17 @@ typedef unsigned short UInt16;
// OS-dependent stuff:
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
-
+
#define _WIN32_WINNT 0x501 // We want to target WinXP and higher
-
+
#include <Windows.h>
#include <winsock2.h>
#include <Ws2tcpip.h> // IPv6 stuff
-
+
// Windows SDK defines min and max macros, messing up with our std::min and std::max usage
#undef min
#undef max
-
+
// Windows SDK defines GetFreeSpace as a constant, probably a Win16 API remnant
#ifdef GetFreeSpace
#undef GetFreeSpace