Forráskód Böngészése

LibC: Add definition for PRIuPTR

Gunnar Beutner 4 éve
szülő
commit
cf79b499f6
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      Userland/Libraries/LibC/inttypes.h

+ 2 - 0
Userland/Libraries/LibC/inttypes.h

@@ -36,8 +36,10 @@ __BEGIN_DECLS
 #define PRIu32 "u"
 #define PRIu32 "u"
 #ifndef __LP64__
 #ifndef __LP64__
 #    define PRIu64 "llu"
 #    define PRIu64 "llu"
+#    define PRIuPTR "x"
 #else
 #else
 #    define PRIu64 "lu"
 #    define PRIu64 "lu"
+#    define PRIuPTR "lx"
 #endif
 #endif
 #define PRIx8 "b"
 #define PRIx8 "b"
 #define PRIX8 "hhX"
 #define PRIX8 "hhX"