2 Copyright (C) 1986, 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
3 1999, 2000, 2003, 2004, 2006 Free Software Foundation, Inc.
4 Contributed by Per Bothner, 1994-95.
5 Based on CCCP program by Paul Rubin, June 1986
6 Adapted to ANSI C, Richard Stallman, Jan 1987
8 This program is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 2, or (at your option) any
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
24 #include "cppdefault.h"
26 #ifndef STANDARD_INCLUDE_DIR
27 #define STANDARD_INCLUDE_DIR "/usr/include"
30 #ifndef STANDARD_INCLUDE_COMPONENT
31 #define STANDARD_INCLUDE_COMPONENT 0
34 #if defined (CROSS_COMPILE) && !defined (TARGET_SYSTEM_ROOT)
35 # undef LOCAL_INCLUDE_DIR
36 # undef SYSTEM_INCLUDE_DIR
37 # undef STANDARD_INCLUDE_DIR
39 # undef CROSS_INCLUDE_DIR
42 const struct default_include cpp_include_defaults[]
43 #ifdef INCLUDE_DEFAULTS
47 #ifdef GPLUSPLUS_INCLUDE_DIR
48 /* Pick up GNU C++ generic include files. */
49 { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1, 0, 0 },
51 #ifdef GPLUSPLUS_TOOL_INCLUDE_DIR
52 /* Pick up GNU C++ target-dependent include files. */
53 { GPLUSPLUS_TOOL_INCLUDE_DIR, "G++", 1, 1, 0, 1 },
55 #ifdef GPLUSPLUS_BACKWARD_INCLUDE_DIR
56 /* Pick up GNU C++ backward and deprecated include files. */
57 { GPLUSPLUS_BACKWARD_INCLUDE_DIR, "G++", 1, 1, 0, 0 },
59 #ifdef LOCAL_INCLUDE_DIR
60 /* /usr/local/include comes before the fixincluded header files. */
61 { LOCAL_INCLUDE_DIR, 0, 0, 1, 1, 0 },
63 #ifdef PREFIX_INCLUDE_DIR
64 { PREFIX_INCLUDE_DIR, 0, 0, 1, 0, 0 },
66 #ifdef GCC_INCLUDE_DIR
67 /* This is the dir for fixincludes and for gcc's private headers. */
68 { GCC_INCLUDE_DIR, "GCC", 0, 0, 0, 0 },
70 #ifdef CROSS_INCLUDE_DIR
71 /* One place the target system's headers might be. */
72 { CROSS_INCLUDE_DIR, "GCC", 0, 0, 0, 0 },
74 #ifdef TOOL_INCLUDE_DIR
75 /* Another place the target system's headers might be. */
76 { TOOL_INCLUDE_DIR, "BINUTILS", 0, 1, 0, 0 },
78 #ifdef SYSTEM_INCLUDE_DIR
79 /* Some systems have an extra dir of include files. */
80 { SYSTEM_INCLUDE_DIR, 0, 0, 0, 1, 0 },
82 #ifdef STANDARD_INCLUDE_DIR
83 /* /usr/include comes dead last. */
84 { STANDARD_INCLUDE_DIR, STANDARD_INCLUDE_COMPONENT, 0, 0, 1, 0 },
88 #endif /* no INCLUDE_DEFAULTS */
90 #ifdef GCC_INCLUDE_DIR
91 const char cpp_GCC_INCLUDE_DIR[] = GCC_INCLUDE_DIR;
92 const size_t cpp_GCC_INCLUDE_DIR_len = sizeof GCC_INCLUDE_DIR - 8;
94 const char cpp_GCC_INCLUDE_DIR[] = "";
95 const size_t cpp_GCC_INCLUDE_DIR_len = 0;