diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2005-09-27 20:49:53 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2005-09-27 20:49:53 +0000 |
commit | ee694aea01daee651ebd9c5bdeadc2a1e3a59413 (patch) | |
tree | 05d5231f2b818dab8d5b02a37fe6a21078f6a2e7 /newlib | |
parent | 22704a8da39db692d8c3c65f3d636d247984f85b (diff) | |
download | cygnal-ee694aea01daee651ebd9c5bdeadc2a1e3a59413.tar.gz cygnal-ee694aea01daee651ebd9c5bdeadc2a1e3a59413.tar.bz2 cygnal-ee694aea01daee651ebd9c5bdeadc2a1e3a59413.zip |
2005-09-27 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly
handling GCC >= 4.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/include/stdint.h | 6 |
2 files changed, 9 insertions, 2 deletions
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 <ralf.corsepius@rtems.org> + + * libc/include/stdint.h: Correct __STDINT_EXP macro incorrectly + handling GCC >= 4. + 2005-09-20 Jeff Johnston <jjohnstn@redhat.com> * 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 |