summaryrefslogtreecommitdiff
path: root/includes/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'includes/common.h')
-rw-r--r--includes/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/common.h b/includes/common.h
index 9ea51fb..baedfe9 100644
--- a/includes/common.h
+++ b/includes/common.h
@@ -29,7 +29,15 @@
#define CW_INLINE inline
+// format string specifiers
+#define PRIxPTR "lx"
+
+#define PRIx32 "lx"
+#define PRIX32 "lX"
+#define PRId32 "ld"
+
#else
+#include <inttypes.h>
#include <stdarg.h>
// expand this to nothing
#define CW_PASCAL