diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-12-20 22:59:03 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-12-20 22:59:03 -0500 |
commit | b50f5c763c575d7284b7a7e7507b2151d1e98fbf (patch) | |
tree | ca0e9ac875a5919e8143824c7df221d3095a02cc /base.h | |
parent | 4f5cee291bb3a5e06a63dc28bf3757c9af49c250 (diff) |
more undo
Diffstat (limited to 'base.h')
-rw-r--r-- | base.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; |