From 463f1b2b934f0caf97f6b1fa6709445c8e2c9418 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sun, 18 Aug 2002 06:26:11 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/cppinit.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8ebb481b48c..2c7c7794234 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-08-18 Neil Booth + + PR preprocessor/7602 + * cppinit.c (path_include): Treat the system environment + variables as being cxx_aware. + 2002-08-17 Joseph S. Myers * c-decl.c (flexible_array_type_p): New function. diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 5b3aab2ac0d..0c61086a225 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) -- 2.30.2