Merge branch "preempt" in "trunk".
[bertos.git] / bertos / cpu / types.h
index 252d77a9796764ce929bbcb46dd6b09d67b3f1a1..bb4aa79f2092982c9b414c865413462d7b5bea9f 100644 (file)
 
 /*\}*/
 
+#ifndef INT_MAX
+       #define INT_MAX ((int)((unsigned int)~0 >> 1))
+       #define INT_MIN (-INT_MAX - 1)
+#endif
+
 /* Sanity checks for the above definitions */
 STATIC_ASSERT(sizeof(char) == SIZEOF_CHAR);
 STATIC_ASSERT(sizeof(short) == SIZEOF_SHORT);