summaryrefslogtreecommitdiff
path: root/base.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-12-20 22:59:03 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-12-20 22:59:03 -0500
commitb50f5c763c575d7284b7a7e7507b2151d1e98fbf (patch)
treeca0e9ac875a5919e8143824c7df221d3095a02cc /base.h
parent4f5cee291bb3a5e06a63dc28bf3757c9af49c250 (diff)
more undo
Diffstat (limited to 'base.h')
-rw-r--r--base.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/base.h b/base.h
index 65c8f20..b17a998 100644
--- a/base.h
+++ b/base.h
@@ -10,7 +10,7 @@
#endif
#include <stdbool.h>
-#include <stdint.h>
+#include <inttypes.h>
#include <stdio.h>
#include <stddef.h>
#include <stdarg.h>
@@ -24,11 +24,17 @@ typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
+#define U32_FMT "%" PRIu32
+#define U64_FMT "%" PRIu64
+
typedef int8_t i8;
typedef int16_t i16;
typedef int32_t i32;
typedef int64_t i64;
+#define I32_FMT "%" PRId32
+#define I64_FMT "%" PRId64
+
typedef unsigned int uint;
typedef unsigned long ulong;