summaryrefslogtreecommitdiff
path: root/src/libc/include/inttypes.h
diff options
context:
space:
mode:
authordzwdz2023-08-24 19:10:35 +0200
committerdzwdz2023-08-24 19:10:35 +0200
commit3e09037780ca95633749be3acd52e817eed7f98c (patch)
tree83bcf5026cd4383809c81c5f38473a6b1e46755e /src/libc/include/inttypes.h
parent292b2386d766826b15f5ca084d37aa2c485fdda6 (diff)
libc: get most of binutils to compile
Diffstat (limited to 'src/libc/include/inttypes.h')
-rw-r--r--src/libc/include/inttypes.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/libc/include/inttypes.h b/src/libc/include/inttypes.h
index 9a6118b..d44129a 100644
--- a/src/libc/include/inttypes.h
+++ b/src/libc/include/inttypes.h
@@ -1 +1,19 @@
#include <stdint.h>
+
+#define PRId64 "ld"
+#define PRIo64 "lo"
+#define PRIu64 "lu"
+#define PRIx64 "lx"
+#define SCNu64 "lu"
+
+#define PRId32 "d"
+#define PRIo32 "o"
+#define PRIu32 "u"
+#define PRIx32 "x"
+#define SCNu32 "u"
+
+#define PRId16 "d"
+#define PRIo16 "o"
+#define PRIu16 "u"
+#define PRIx16 "x"
+#define SCNu16 "u"