aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppinit.c
diff options
context:
space:
mode:
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 ff4cdb3..8319ad9 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;