diff options
author | peterbell10 <peterbell10@live.co.uk> | 2020-05-10 18:16:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-10 18:16:38 +0200 |
commit | 154df6b09d0c39ef9a9b1ee049251b645c13f559 (patch) | |
tree | dd5976d81910d369e09b95c35fd89cd8cccb378c /Tools/RCONClient | |
parent | Remove pkFishingFloat documentation (#4732) (diff) | |
download | cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.tar cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.tar.gz cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.tar.bz2 cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.tar.lz cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.tar.xz cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.tar.zst cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.zip |
Diffstat (limited to 'Tools/RCONClient')
-rw-r--r-- | Tools/RCONClient/Globals.h | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/Tools/RCONClient/Globals.h b/Tools/RCONClient/Globals.h index f8558b032..661918063 100644 --- a/Tools/RCONClient/Globals.h +++ b/Tools/RCONClient/Globals.h @@ -16,21 +16,6 @@ // 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 - - #define FORMATSTRING(formatIndex, va_argsIndex) - - // MSVC has its own custom version of zu format - #define SIZE_T_FMT "%Iu" - #define SIZE_T_FMT_PRECISION(x) "%" #x "Iu" - #define SIZE_T_FMT_HEX "%Ix" - - #define NORETURN __declspec(noreturn) - // Use non-standard defines in <cmath> #define _USE_MATH_DEFINES @@ -39,61 +24,10 @@ // 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))) - #define ALIGN_16 __attribute__((aligned(16))) - - // Some portability macros :) - #define stricmp strcasecmp - - #define FORMATSTRING(formatIndex, va_argsIndex) __attribute__((format (printf, formatIndex, va_argsIndex))) - - #if defined(_WIN32) - // We're compiling on MinGW, which uses an old MSVCRT library that has no support for size_t printfing. - // We need direct size formats: - #if defined(_WIN64) - #define SIZE_T_FMT "%I64u" - #define SIZE_T_FMT_PRECISION(x) "%" #x "I64u" - #define SIZE_T_FMT_HEX "%I64x" - #else - #define SIZE_T_FMT "%u" - #define SIZE_T_FMT_PRECISION(x) "%" #x "u" - #define SIZE_T_FMT_HEX "%x" - #endif - #else - // We're compiling on Linux, so we can use libc's size_t printf format: - #define SIZE_T_FMT "%zu" - #define SIZE_T_FMT_PRECISION(x) "%" #x "zu" - #define SIZE_T_FMT_HEX "%zx" - #endif - - #define NORETURN __attribute((__noreturn__)) - #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 - - // Mark functions as obsolete, so that their usage results in a compile-time warning - #define OBSOLETE - - // Mark types / variables for alignment. Do the platforms need it? - #define ALIGN_8 - #define ALIGN_16 - */ - #endif |