Skip to contentSkip to conversation

add few missing constants in limits.h

PATCH New Stefano Stabellini 1 participant 1 message Jun 25, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add few missing constants in limits.h

Hi all,
this patch adds two constants missing from limits.h.

---

extras/mini-os/include/posix/limits.h +2 -0
diff -r cbe6eaa7b7c3 extras/mini-os/include/posix/limits.h
@@ -21,7 +21,9 @@
 #define INT_MIN         (-INT_MAX-1)
 #define UINT_MAX        0xffffffff
 
+#define SHRT_MIN	(-0x8000)
 #define SHRT_MAX        0x7fff
+#define USHRT_MAX       0xffff
 
 #if defined(__x86_64__) || defined(__ia64__)
 # define LONG_MAX       0x7fffffffffffffffL