aboutsummaryrefslogtreecommitdiff
path: root/include/ansidecl.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2000-06-17 15:51:55 +0000
committerH.J. Lu <hjl.tools@gmail.com>2000-06-17 15:51:55 +0000
commitf1d95f4b62a175de3a027f2d73d6239ff802966f (patch)
tree6201853c03ad035e6e7cbef17c8a4f17d28d4a1e /include/ansidecl.h
parent9ace04976eba7ddf203e4ecd3bab52323334896b (diff)
downloadgdb-f1d95f4b62a175de3a027f2d73d6239ff802966f.zip
gdb-f1d95f4b62a175de3a027f2d73d6239ff802966f.tar.gz
gdb-f1d95f4b62a175de3a027f2d73d6239ff802966f.tar.bz2
2000-05-06 Zack Weinberg <zack@wolery.cumb.org>
* ansidecl.h: #define __extension__ to nothing if GCC_VERSION < 2008.
Diffstat (limited to 'include/ansidecl.h')
-rw-r--r--include/ansidecl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/ansidecl.h b/include/ansidecl.h
index 1030867..e7852c6 100644
--- a/include/ansidecl.h
+++ b/include/ansidecl.h
@@ -160,6 +160,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#endif /* ANSI C. */
+
/* Using MACRO(x,y) in cpp #if conditionals does not work with some
older preprocessors. Thus we can't define something like this:
@@ -221,4 +222,11 @@ So instead we use the macro below and test it against specific values. */
#define ATTRIBUTE_PRINTF_5 ATTRIBUTE_PRINTF(5, 6)
#endif /* ATTRIBUTE_PRINTF */
+/* We use __extension__ in some places to suppress -pedantic warnings
+ about GCC extensions. This feature didn't work properly before
+ gcc 2.8. */
+#if GCC_VERSION < 2008
+#define __extension__
+#endif
+
#endif /* ansidecl.h */