summaryrefslogtreecommitdiffstats
path: root/src/Globals.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Globals.h')
-rw-r--r--src/Globals.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Globals.h b/src/Globals.h
index faa168c59..08d9e971a 100644
--- a/src/Globals.h
+++ b/src/Globals.h
@@ -43,6 +43,8 @@
// 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"
#elif defined(__GNUC__)
@@ -65,6 +67,8 @@
#define FORMATSTRING(formatIndex,va_argsIndex) __attribute__((format (printf, formatIndex, va_argsIndex)))
#define SIZE_T_FMT "%zu"
+ #define SIZE_T_FMT_PRECISION(x) "%" #x "zu"
+ #define SIZE_T_FMT_HEX "%zx"
#else