summaryrefslogtreecommitdiffstats
path: root/src/Globals.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-11 21:41:15 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-11 21:41:15 +0100
commit53faac10c50ba88ce540e0464123f388bd7db069 (patch)
treef83b355c6bb76349e47b8b4e8292347534fa94a5 /src/Globals.h
parentRollback submodule change (diff)
downloadcuberite-53faac10c50ba88ce540e0464123f388bd7db069.tar
cuberite-53faac10c50ba88ce540e0464123f388bd7db069.tar.gz
cuberite-53faac10c50ba88ce540e0464123f388bd7db069.tar.bz2
cuberite-53faac10c50ba88ce540e0464123f388bd7db069.tar.lz
cuberite-53faac10c50ba88ce540e0464123f388bd7db069.tar.xz
cuberite-53faac10c50ba88ce540e0464123f388bd7db069.tar.zst
cuberite-53faac10c50ba88ce540e0464123f388bd7db069.zip
Diffstat (limited to '')
-rw-r--r--src/Globals.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Globals.h b/src/Globals.h
index 2cd160677..e907614d7 100644
--- a/src/Globals.h
+++ b/src/Globals.h
@@ -38,6 +38,8 @@
// No alignment needed in MSVC
#define ALIGN_8
#define ALIGN_16
+
+ #define FORMATSTRING(formatIndex,va_argsIndex)
#elif defined(__GNUC__)
@@ -56,6 +58,8 @@
// Some portability macros :)
#define stricmp strcasecmp
+
+ #define FORMATSTRING(formatIndex,va_argsIndex) __attribute__((format (printf, formatIndex, va_argsIndex)))
#else