summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-06 22:32:22 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-06 22:32:22 +0100
commit7ee0667b75826a069a3a8ed45454429ef9ed649a (patch)
tree054cc7aba7334a7a55190940d893d1d6dcdae546 /source
parentYay redstone repeaters! (diff)
downloadcuberite-7ee0667b75826a069a3a8ed45454429ef9ed649a.tar
cuberite-7ee0667b75826a069a3a8ed45454429ef9ed649a.tar.gz
cuberite-7ee0667b75826a069a3a8ed45454429ef9ed649a.tar.bz2
cuberite-7ee0667b75826a069a3a8ed45454429ef9ed649a.tar.lz
cuberite-7ee0667b75826a069a3a8ed45454429ef9ed649a.tar.xz
cuberite-7ee0667b75826a069a3a8ed45454429ef9ed649a.tar.zst
cuberite-7ee0667b75826a069a3a8ed45454429ef9ed649a.zip
Diffstat (limited to 'source')
-rw-r--r--source/Globals.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/Globals.h b/source/Globals.h
index 419d5f5a7..0d6694e11 100644
--- a/source/Globals.h
+++ b/source/Globals.h
@@ -12,6 +12,8 @@
#ifndef _MSC_VER
// Non-MS compilers don't know the override keyword
#define override
+ #define abstract
+ #define stricmp strcasecmp
#else
// MSVC produces warning C4481 on the override keyword usage, so disable the warning altogether
#pragma warning(disable:4481)
@@ -107,6 +109,9 @@
/// Evaluates to the number of elements in an array (compile-time!)
#define ARRAYCOUNT(X) (sizeof(X) / sizeof(*(X)))
+/// Allows arithmetic expressions like "32 KiB" (but consider using parenthesis around it, "(32 KiB)" )
+#define KiB * 1024
+
#ifdef _MSC_VER
#define OBSOLETE __declspec(deprecated)
#define ABSTRACT abstract