(main): Handle NO_IMPLICIT_EXTERN_C.
authorRichard Stallman <rms@gnu.org>
Fri, 5 Nov 1993 11:12:43 +0000 (11:12 +0000)
committerRichard Stallman <rms@gnu.org>
Fri, 5 Nov 1993 11:12:43 +0000 (11:12 +0000)
From-SVN: r6009

gcc/cccp.c

index f28cfe6eefd99f0a478d5709d8d299f38b94ed65..3581dc015e0f8beadb24092d15be39beda5a5bbc 100644 (file)
@@ -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;