summaryrefslogtreecommitdiffstats
path: root/src/Globals.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-12 18:09:08 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-12 18:09:08 +0100
commita584b7b3bc95783025d9861964bd987f324ba981 (patch)
treedd7a46c0e9cd5ff4bd9b27e557fbb4d9fcfca077 /src/Globals.h
parentMerge branch 'master' into Werror (diff)
downloadcuberite-a584b7b3bc95783025d9861964bd987f324ba981.tar
cuberite-a584b7b3bc95783025d9861964bd987f324ba981.tar.gz
cuberite-a584b7b3bc95783025d9861964bd987f324ba981.tar.bz2
cuberite-a584b7b3bc95783025d9861964bd987f324ba981.tar.lz
cuberite-a584b7b3bc95783025d9861964bd987f324ba981.tar.xz
cuberite-a584b7b3bc95783025d9861964bd987f324ba981.tar.zst
cuberite-a584b7b3bc95783025d9861964bd987f324ba981.zip
Diffstat (limited to '')
-rw-r--r--src/Globals.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Globals.h b/src/Globals.h
index 5ced0cc39..b42a06970 100644
--- a/src/Globals.h
+++ b/src/Globals.h
@@ -38,6 +38,9 @@
// No alignment needed in MSVC
#define ALIGN_8
#define ALIGN_16
+
+ // MSVC has its own custom version of zu format
+ #define SIZE_T_FMT "%Iu"
#elif defined(__GNUC__)
@@ -56,6 +59,8 @@
// Some portability macros :)
#define stricmp strcasecmp
+
+ #define SIZE_T_FMT "%zu"
#else