From: John Hodge (sonata) Date: Sun, 28 Sep 2014 14:39:00 +0000 (+0800) Subject: Usermode/libc - Fix inttypes.h X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=4c5e1682bfea82328064195b81e4d9aae5b782a6;p=tpg%2Facess2.git Usermode/libc - Fix inttypes.h --- diff --git a/Usermode/Libraries/libc.so_src/include_exp/inttypes.h b/Usermode/Libraries/libc.so_src/include_exp/inttypes.h index 110fddad..05e67070 100644 --- a/Usermode/Libraries/libc.so_src/include_exp/inttypes.h +++ b/Usermode/Libraries/libc.so_src/include_exp/inttypes.h @@ -11,16 +11,17 @@ #define _INTTYPES_H_ #include +#include -#if INT64MAX == LONG_MAX +#if INT64_MAX == LONG_MAX # define _PRI64 "l" #else # define _PRI64 "ll" #endif -#define PRId64 _PRI64"ld" -#define PRIdLEAST64 _PRI64"ld" -#define PRIdFAST64 _PRI64"ld" +#define PRId64 _PRI64"d" +#define PRIdLEAST64 _PRI64"d" +#define PRIdFAST64 _PRI64"d" #define PRIdMAX #define PRIdPTR #define PRIi64 _PRI64"i"