debuggers.hg

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