1--- newlib-1.16.0/newlib/libc/include/stdint.h.orig	2006-08-17 00:39:43.000000000 +0300
2+++ newlib-1.16.0/newlib/libc/include/stdint.h	2009-08-25 17:33:23.000000000 +0300
3@@ -348,8 +348,11 @@
4 #endif
5
6 /* This must match size_t in stddef.h, currently long unsigned int */
7-#define SIZE_MIN (-__STDINT_EXP(LONG_MAX) - 1L)
8-#define SIZE_MAX __STDINT_EXP(LONG_MAX)
9+#ifdef __SIZE_MAX__
10+#define SIZE_MAX __SIZE_MAX__
11+#else
12+#define SIZE_MAX (__STDINT_EXP(LONG_MAX) * 2UL + 1)
13+#endif
14
15 /* This must match sig_atomic_t in <signal.h> (currently int) */
16 #define SIG_ATOMIC_MIN (-__STDINT_EXP(INT_MAX) - 1)
17