From b4f49cc48fec2fb0985e6df03873b9a4b01c79db Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 4 Jun 2012 19:41:41 +0200 Subject: [PATCH] software/base/limits.h: add some more --- software/include/base/limits.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/software/include/base/limits.h b/software/include/base/limits.h index b9c113ec..95234d25 100644 --- a/software/include/base/limits.h +++ b/software/include/base/limits.h @@ -1,12 +1,18 @@ #ifndef __LIMITS_H #define __LIMITS_H +#define ULONG_MAX 0xffffffff + +#define UINT_MAX 0xffffffff #define INT_MIN 0x80000000 #define INT_MAX 0x7fffffff +#define USHRT_MAX 0xffff #define SHRT_MIN 0x8000 #define SHRT_MAX 0x7fff #define UCHAR_MAX 0xff +#define CHAR_BIT 8 + #endif /* __LIMITS_H */ -- 2.30.2