* toplev.c (lang_independent_f_options): Remove
[official-gcc.git] / gcc / gansidecl.h
blobc64cee5bc2ebaa315886ff5a5266933b8ddf6b8e
1 /* ANSI and traditional C compatibility macros.
2 Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
4 This file is part of GNU CC.
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 /* This file mimics some of the support provided by include/ansidecl.h
22 in binutils and gdb releases.
23 ??? Over time the two should be merged into one. */
25 #ifndef __GANSIDECL_H__
26 #define __GANSIDECL_H__
28 #include "ansidecl.h"
30 /* Autoconf will possibly define the `inline' or `const' keywords as
31 macros, however this is only valid for the stage1 compiler. If we
32 detect a modern version of gcc, unconditionally reset the values.
33 This makes sure the right thing happens in stage2 and later. We
34 need to do this very early; i.e. before any systems header files or
35 gcc header files in case they use these keywords. Otherwise
36 conflicts might occur. */
37 #if (GCC_VERSION >= 2007)
38 # ifdef __STDC__
39 # undef const
40 # endif
41 # undef inline
42 # define inline __inline__ /* Modern gcc can use `__inline__' freely. */
43 # ifndef HAVE_LONG_DOUBLE
44 # define HAVE_LONG_DOUBLE 1
45 # endif
46 /* Assume that (non-traditional) gcc used in stage2 or later has the
47 stringize feature. */
48 # if !defined (HAVE_STRINGIZE) && __STDC__
49 # define HAVE_STRINGIZE 1
50 # endif /* ! HAVE_STRINGIZE && __STDC__ */
51 #endif /* GCC >= 2.7 */
53 #ifndef NULL_PTR
54 #define NULL_PTR ((PTR) 0)
55 #endif
57 #endif /* __GANSIDECL_H__ */