From c8c2745fa71119250b4022e45058952045f960f6 Mon Sep 17 00:00:00 2001 From: ligd Date: Tue, 14 Jul 2020 11:17:51 +0800 Subject: [PATCH] include/sys/types.h: add u_intXX_t support like u_int8_t u_int16_t u_in32_t... Change-Id: Ieee5014bddb1cf1a6e769af7258ff524263f67fb Signed-off-by: ligd --- include/sys/types.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/sys/types.h b/include/sys/types.h index bce39a8acc..b55c9b320f 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -290,6 +290,18 @@ typedef unsigned long ulong; typedef signed char s_char; typedef FAR char *caddr_t; +/* These were defined by ISO C without the first `_'. */ + +typedef uint8_t u_int8_t; +typedef uint16_t u_int16_t; +typedef uint32_t u_int32_t; +#ifdef __INT24_DEFINED +typedef uint24_t u_int24_t; +#endif +#ifdef __INT64_DEFINED +typedef uint64_t u_int64_t; +#endif + /* Task entry point */ typedef CODE int (*main_t)(int argc, FAR char *argv[]);