From 0e1fec841e7cc9291110284a946d1d0489fc7713 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Tue, 24 Mar 2020 14:41:31 -0700 Subject: [PATCH] add intmax_t/uintmax_t as required by c99 7.18.1.5 --- sys/include/ape/stdint.h | 4 ++++ 1 file changed, 4 insertions(+) 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