summaryrefslogtreecommitdiff
path: root/sys/include/ape/inttypes.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-07-13 02:36:48 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-07-13 02:36:48 +0200
commit737c3edeba2c7615e08d9263e9eb010bbfd1e42b (patch)
tree4b149d907737ccfd233467dbf6789bbe5587f0b2 /sys/include/ape/inttypes.h
parentcd9da74cbc2ff04de2179565bf31d8536eb9bd6b (diff)
ape: add stdint.h, fix SSIZE_MAX and add SIZE_MAX to limits.h
Diffstat (limited to 'sys/include/ape/inttypes.h')
-rw-r--r--sys/include/ape/inttypes.h31
1 files changed, 19 insertions, 12 deletions
diff --git a/sys/include/ape/inttypes.h b/sys/include/ape/inttypes.h
index 55725d54a..658e338db 100644
--- a/sys/include/ape/inttypes.h
+++ b/sys/include/ape/inttypes.h
@@ -5,19 +5,26 @@
#ifndef _INTTYPES_H_
#define _INTTYPES_H_ 1
-typedef int _intptr_t;
-typedef unsigned int _uintptr_t;
+#include <stdint.h>
+#define PRId8 "d"
+#define PRId16 "d"
+#define PRId32 "d"
+#define PRId64 "lld"
-typedef char int8_t;
-typedef short int16_t;
-typedef int int32_t;
-typedef long long int64_t;
-typedef unsigned char uint8_t;
-typedef unsigned short uint16_t;
-typedef unsigned int uint32_t;
-typedef unsigned long long uint64_t;
-typedef _intptr_t intptr_t;
-typedef _uintptr_t uintptr_t;
+#define PRIo8 "o"
+#define PRIo16 "o"
+#define PRIo32 "o"
+#define PRIo64 "llo"
+
+#define PRIx8 "x"
+#define PRIx16 "x"
+#define PRIx32 "x"
+#define PRIx64 "llx"
+
+#define PRIu8 "u"
+#define PRIu16 "u"
+#define PRIu32 "u"
+#define PRIu64 "llu"
#endif