summaryrefslogtreecommitdiff
path: root/src/cc-compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cc-compat.h')
-rw-r--r--src/cc-compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cc-compat.h b/src/cc-compat.h
index cc7c90859..a5e4ce17e 100644
--- a/src/cc-compat.h
+++ b/src/cc-compat.h
@@ -38,8 +38,10 @@
/* Define the printf format specifer to use for size_t output */
#if defined(_MSC_VER) || defined(__MINGW32__)
# define PRIuZ "Iu"
+# define PRIxZ "Ix"
#else
# define PRIuZ "zu"
+# define PRIxZ "zx"
#endif
/* Micosoft Visual C/C++ */