aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppinit.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2002-08-18 06:26:11 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-08-18 06:26:11 +0000
commit463f1b2b934f0caf97f6b1fa6709445c8e2c9418 (patch)
treec2cadccf8479ae4d3701c113537f759ed5d01bf6 /gcc/cppinit.c
parent88fe2466a0866da75f0e4fe2357a551db31d2ad6 (diff)
downloadgcc-463f1b2b934f0caf97f6b1fa6709445c8e2c9418.zip
gcc-463f1b2b934f0caf97f6b1fa6709445c8e2c9418.tar.gz
gcc-463f1b2b934f0caf97f6b1fa6709445c8e2c9418.tar.bz2
re PR preprocessor/7602 (C++ header files found in CPLUS_INCLUDE_PATH treated as C headers)
PR preprocessor/7602 * cppinit.c (path_include): Treat the system environment variables as being cxx_aware. From-SVN: r56416
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r--gcc/cppinit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c
index 5b3aab2..0c61086 100644
--- a/gcc/cppinit.c
+++ b/gcc/cppinit.c
@@ -178,7 +178,7 @@ path_include (pfile, list, path)
name[q - p] = 0;
}
- append_include_chain (pfile, name, path, 0);
+ append_include_chain (pfile, name, path, path == SYSTEM);
/* Advance past this name. */
if (*q == 0)