diff options
author | Ori Bernstein <ori@eigenstate.org> | 2020-03-24 14:41:31 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2020-03-24 14:41:31 -0700 |
commit | 0e1fec841e7cc9291110284a946d1d0489fc7713 (patch) | |
tree | b2726ae2f6066b1a173568cd8e4bbe29938fc2b4 | |
parent | 3fe2924287628a02d9c5f7d208a5af4623588034 (diff) | |
download | plan9front-0e1fec841e7cc9291110284a946d1d0489fc7713.tar.xz |
add intmax_t/uintmax_t as required by c99 7.18.1.5
-rw-r--r-- | sys/include/ape/stdint.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/include/ape/stdint.h b/sys/include/ape/stdint.h index 4aa5381ae..3bc0fd3f5 100644 --- a/sys/include/ape/stdint.h +++ b/sys/include/ape/stdint.h @@ -14,10 +14,12 @@ typedef char int8_t; typedef short int16_t; typedef int int32_t; typedef long long int64_t; +typedef long long intmax_t; typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; typedef unsigned long long uint64_t; +typedef unsigned long long uintmax_t; typedef _intptr_t intptr_t; typedef _uintptr_t uintptr_t; @@ -36,11 +38,13 @@ typedef _uintptr_t uintptr_t; #define INT16_MAX 0x7fff #define INT32_MAX 0x7fffffff #define INT64_MAX 0x7fffffffffffffffULL +#define INTMAX_MAX INT64_MAX #define UINT8_MAX 0xff #define UINT16_MAX 0xffff #define UINT32_MAX 0xffffffffL #define UINT64_MAX 0xffffffffffffffffULL +#define UINTMAX_MAX UINT64_MAX /* * Right now, all of our size_t types are 32 bit, even on |