From b1f321538097ee4fac334acf7794d502d6d371fa Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 25 Oct 2016 07:13:49 +0200 Subject: Provide __intmax_t and __uintmax_t Provide __intmax_t and __uintmax_t via and define intmax_t and uintmax_t in for FreeBSD compatibility. Signed-off-by: Sebastian Huber --- newlib/libc/include/sys/_stdint.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'newlib/libc/include/sys/_stdint.h') diff --git a/newlib/libc/include/sys/_stdint.h b/newlib/libc/include/sys/_stdint.h index 93746b88f..21a14d3ea 100644 --- a/newlib/libc/include/sys/_stdint.h +++ b/newlib/libc/include/sys/_stdint.h @@ -63,6 +63,16 @@ typedef __uint64_t uint64_t ; #define __int64_t_defined 1 #endif /* ___int64_t_defined */ +#ifndef _INTMAX_T_DECLARED +typedef __intmax_t intmax_t; +#define _INTMAX_T_DECLARED +#endif + +#ifndef _UINTMAX_T_DECLARED +typedef __uintmax_t uintmax_t; +#define _UINTMAX_T_DECLARED +#endif + #ifndef _INTPTR_T_DECLARED typedef __intptr_t intptr_t; #define _INTPTR_T_DECLARED -- cgit v1.2.3