projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d19544
)
(main): Handle NO_IMPLICIT_EXTERN_C.
author
Richard Stallman
<rms@gnu.org>
Fri, 5 Nov 1993 11:12:43 +0000
(11:12 +0000)
committer
Richard Stallman
<rms@gnu.org>
Fri, 5 Nov 1993 11:12:43 +0000
(11:12 +0000)
From-SVN: r6009
gcc/cccp.c
patch
|
blob
|
history
diff --git
a/gcc/cccp.c
b/gcc/cccp.c
index
f28cfe6
..
3581dc0
100644
(file)
--- a/
gcc/cccp.c
+++ b/
gcc/cccp.c
@@
-1739,7
+1739,13
@@
main (argc, argv)
strcat (str, p->fname + default_len);
new->fname = str;
new->control_macro = 0;
+#ifdef NO_IMPLICIT_EXTERN_C
+ /* On some systems, the system header files are C++-compatible.
+ So don't pretend they are `extern "C"'. */
+ new->c_system_include_path = 0;
+#else
new->c_system_include_path = !p->cplusplus;
+#endif
append_include_chain (new, new);
if (first_system_include == 0)
first_system_include = new;