summaryrefslogtreecommitdiff
path: root/gcc/cppinit.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-03 20:48:32 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-03 20:48:32 +0000
commit3b44c686f2c88d55af068cb05886129fe331d3d4 (patch)
tree2806dd9d6fac7b0da7735b6e56b9ebe6d02172b1 /gcc/cppinit.c
parenta28b091bb16c3f096e8093f22104b50ac28c7970 (diff)
downloadgcc-3b44c686f2c88d55af068cb05886129fe331d3d4.tar.gz
* cppinit.c (append_include_chain): Honor NO_IMPLICIT_EXTERN_C.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39435 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r--gcc/cppinit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c
index ff4cdb38bbb..8319ad987fb 100644
--- a/gcc/cppinit.c
+++ b/gcc/cppinit.c
@@ -237,7 +237,11 @@ append_include_chain (pfile, dir, path, cxx_aware)
new->ino = st.st_ino;
new->dev = st.st_dev;
if (path == SYSTEM)
+#ifdef NO_IMPLICIT_EXTERN_C
+ new->sysp = 1;
+#else
new->sysp = cxx_aware ? 1 : 2;
+#endif
else
new->sysp = 0;
new->name_map = NULL;