From cf79b499f62099d88118cebfe780a80502ee38f0 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 18 Jun 2021 15:05:03 +0200 Subject: [PATCH] LibC: Add definition for PRIuPTR --- Userland/Libraries/LibC/inttypes.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibC/inttypes.h b/Userland/Libraries/LibC/inttypes.h index a6abf94765..78b65c9103 100644 --- a/Userland/Libraries/LibC/inttypes.h +++ b/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"