debuggers.hg

view stubdom/newlib-stdint-size_max-fix-from-1.17.0.patch @ 22906:700ac6445812

Now add KDB to the non-kdb tree
author Mukesh Rathor
date Thu Feb 03 15:42:41 2011 -0800 (2011-02-03)
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)