diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 2553f5813..0ed1b83c5 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2005-09-27 Ralf Corsepius + + * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly + handling GCC >= 4. + 2005-09-20 Jeff Johnston * libc/sys/linux/include/stdint.h: Update to match functionality diff --git a/newlib/libc/include/stdint.h b/newlib/libc/include/stdint.h index b5d8d1530..f9e8d837f 100644 --- a/newlib/libc/include/stdint.h +++ b/newlib/libc/include/stdint.h @@ -18,8 +18,10 @@ extern "C" { #endif -#if defined(__GNUC__) && (__GNUC__ >= 3 ) \ - && defined(__GNUC_MINOR__) && (__GNUC_MINOR__ > 2 ) +#if defined(__GNUC__) && \ + ( (__GNUC__ >= 4) || \ + ( (__GNUC__ >= 3) && defined(__GNUC_MINOR__) && (__GNUC_MINOR__ > 2) ) ) +/* gcc > 3.2 implicitly defines the values we are interested */ #define __STDINT_EXP(x) __##x##__ #else #define __STDINT_EXP(x) x