summaryrefslogtreecommitdiff
path: root/include/util/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/util/util.h')
-rw-r--r--include/util/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/util/util.h b/include/util/util.h
index 881b59c..a08c7ee 100644
--- a/include/util/util.h
+++ b/include/util/util.h
@@ -30,12 +30,15 @@
#if SIZEOF_SIZE_T <= SIZEOF_INT
#define SZ_ADD_OV UI_ADD_OV
#define SZ_MUL_OV UI_MUL_OV
+#define PRI_SZ "%u"
#elif SIZEOF_SIZE_T == SIZEOF_LONG
#define SZ_ADD_OV UL_ADD_OV
#define SZ_MUL_OV UL_MUL_OV
+#define PRI_SZ "%lu"
#elif SIZEOF_SIZE_T == SIZEOF_LONG_LONG
#define SZ_ADD_OV ULL_ADD_OV
#define SZ_MUL_OV ULL_MUL_OV
+#define PRI_SZ "%llu"
#else
#error Cannot determine maximum value of size_t
#endif