debuggers.hg

view stubdom/newlib-stdint-size_max-fix-from-1.17.0.patch @ 20161:49bfec374baf

stubdom: Backport fix for SIZE_MAX from newlib 1.17.0

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Aug 25 16:26:02 2009 +0100 (2009-08-25)
parents
children
line source
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
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
15 /* This must match sig_atomic_t in <signal.h> (currently int) */
16 #define SIG_ATOMIC_MIN (-__STDINT_EXP(INT_MAX) - 1)