aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/logging.h')
-rw-r--r--Alc/logging.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Alc/logging.h b/Alc/logging.h
index f493d973..41f64f77 100644
--- a/Alc/logging.h
+++ b/Alc/logging.h
@@ -4,6 +4,14 @@
#include <stdio.h>
+#if defined(_WIN64)
+#define SZFMT "%I64u"
+#elif defined(_WIN32)
+#define SZFMT "%u"
+#else
+#define SZFMT "%zu"
+#endif
+
#ifdef __GNUC__
#define DECL_FORMAT(x, y, z) __attribute__((format(x, (y), (z))))
#else