software/base/limits.h: add some more
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Mon, 4 Jun 2012 17:41:41 +0000 (19:41 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Mon, 4 Jun 2012 17:41:41 +0000 (19:41 +0200)
software/include/base/limits.h

index b9c113ec4e38284e23058ac7fc9c25299dc04e74..95234d258a1d874d0d46ae0df51e27ed25b487bb 100644 (file)
@@ -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 */