summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-11-08 17:33:15 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-11-08 17:33:15 +0100
commit4fb20e290ead6ac09bdeaaffe08792f138ed73a2 (patch)
treeb596d209025c23dd3546ed3b3fcdbb3c75818874
parenta6a6e2aac9cd4bce4908978aa347423e5c9d779a (diff)
Add PRiX* macros to inttypes.h
-rw-r--r--libpsx/include/inttypes.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libpsx/include/inttypes.h b/libpsx/include/inttypes.h
index 831c6ed..4c252af 100644
--- a/libpsx/include/inttypes.h
+++ b/libpsx/include/inttypes.h
@@ -65,4 +65,13 @@ typedef long intptr_t;
#define PRIuMAX "llu"
#define PRIuPTR "lu"
+#define PRIx8 "hhx"
+#define PRIX8 "hhX"
+#define PRIx16 "hx"
+#define PRIX16 "hX"
+#define PRIx32 "x"
+#define PRIX32 "X"
+#define PRIx64 "lx"
+#define PRIX64 "lX"
+
#endif