Usermode/libc - Fix inttypes.h
authorJohn Hodge (sonata) <[email protected]>
Sun, 28 Sep 2014 14:39:00 +0000 (22:39 +0800)
committerJohn Hodge (sonata) <[email protected]>
Sun, 28 Sep 2014 14:39:00 +0000 (22:39 +0800)
Usermode/Libraries/libc.so_src/include_exp/inttypes.h

index 110fdda..05e6707 100644 (file)
 #define _INTTYPES_H_
 
 #include <stdint.h>
+#include <limits.h>
 
-#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"

UCC git Repository :: git.ucc.asn.au