From c2a2b38e1f5464313a796e0390e4036fb02cf175 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 17 Jun 2000 15:51:55 +0000 Subject: 2000-05-06 Zack Weinberg * ansidecl.h: #define __extension__ to nothing if GCC_VERSION < 2008. --- include/ansidecl.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/ansidecl.h') diff --git a/include/ansidecl.h b/include/ansidecl.h index 10308676f..e7852c684 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 */ -- cgit v1.2.3