Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-09-28 00:49:53 +0400
committerJeff Johnston <jjohnstn@redhat.com>2005-09-28 00:49:53 +0400
commitee694aea01daee651ebd9c5bdeadc2a1e3a59413 (patch)
tree05d5231f2b818dab8d5b02a37fe6a21078f6a2e7 /newlib
parent22704a8da39db692d8c3c65f3d636d247984f85b (diff)
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/ChangeLog5
-rw-r--r--newlib/libc/include/stdint.h6
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