debuggers.hg

view stubdom/newlib-stdint-size_max-fix-from-1.17.0.patch @ 22848:6341fe0f4e5a

Added tag 4.1.0-rc2 for changeset 9dca60d88c63
author Keir Fraser <keir@xen.org>
date Tue Jan 25 14:06:55 2011 +0000 (2011-01-25)
parents 49bfec374baf
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)