summaryrefslogtreecommitdiff
path: root/gcc/gansidecl.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-10-10 13:02:41 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-10-10 13:02:41 +0000
commitb30bce6b52996616cb627a68222fbf5d8be9d4b9 (patch)
tree310d1d76de40ddae5138d2494f3d456112cfa3b0 /gcc/gansidecl.h
parent4724334af7ddfb70240a39f965647d32773ba417 (diff)
downloadgcc-b30bce6b52996616cb627a68222fbf5d8be9d4b9.tar.gz
ansidecl.h (HAVE_GCC_VERSION): New macro.
include: * ansidecl.h (HAVE_GCC_VERSION): New macro. Use instead of explicitly testing __GNUC__ and __GNUC_MINOR__. (ATTRIBUTE_PRINTF): Use `__format__', not `format'. gcc: * cppinit.c: Use HAVE_GCC_VERSION instead of explicitly testing __GNUC__ and __GNUC_MINOR__. * gansidecl.h: Likewise. * rtl.c: Likewise. * rtl.h: Likewise. * toplev.h: Likewise. * tree.c: Likewise. * tree.h: Likewise. * varray.c: Likewise. * varray.h: Likewise. cp: * cp-tree.h: Use HAVE_GCC_VERSION instead of explicitly testing __GNUC__ and __GNUC_MINOR__. f: * proj.h: Use HAVE_GCC_VERSION instead of explicitly testing __GNUC__ and __GNUC_MINOR__. Don't define BUILT_WITH_270. Define macro UNUSED in terms of ATTRIBUTE_UNUSED. From-SVN: r29890
Diffstat (limited to 'gcc/gansidecl.h')
-rw-r--r--gcc/gansidecl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gansidecl.h b/gcc/gansidecl.h
index f867cda0426..17a7c919b63 100644
--- a/gcc/gansidecl.h
+++ b/gcc/gansidecl.h
@@ -41,7 +41,7 @@ Boston, MA 02111-1307, USA. */
need to do this very early; i.e. before any systems header files or
gcc header files in case they use these keywords. Otherwise
conflicts might occur. */
-#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
+#if HAVE_GCC_VERSION(2,7)
# undef const
# undef inline
# define inline __inline__ /* Modern gcc can use `__inline__' freely. */