瀏覽代碼

LibC: Add definition for PRIuPTR

Gunnar Beutner 4 年之前
父節點
當前提交
cf79b499f6
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Userland/Libraries/LibC/inttypes.h

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

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