summaryrefslogtreecommitdiffhomepage
path: root/include/stc/ccommon.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stc/ccommon.h')
-rw-r--r--include/stc/ccommon.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/stc/ccommon.h b/include/stc/ccommon.h
index e3406727..394964c0 100644
--- a/include/stc/ccommon.h
+++ b/include/stc/ccommon.h
@@ -30,6 +30,12 @@
#include <string.h>
#include <assert.h>
+#if SIZE_MAX == UINT32_MAX
+# define c_zu PRIu32
+#elif SIZE_MAX == UINT64_MAX
+# define c_zu PRIu64
+#endif
+
#if defined(_MSC_VER)
# pragma warning(disable: 4116 4996) // unnamed type definition in parentheses
# define STC_FORCE_INLINE static __forceinline