From 7ee0667b75826a069a3a8ed45454429ef9ed649a Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 6 Mar 2012 21:32:22 +0000 Subject: Fixed rev 373 not compiling on linux git-svn-id: http://mc-server.googlecode.com/svn/trunk@375 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Globals.h | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3