aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sol2.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/sol2.h')
-rw-r--r--gcc/config/sol2.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h
index a532d3e..79c54b5 100644
--- a/gcc/config/sol2.h
+++ b/gcc/config/sol2.h
@@ -76,6 +76,9 @@ Boston, MA 02111-1307, USA. */
TARGET_SUB_OS_CPP_BUILTINS(); \
} while (0)
+/* The system headers under Solaris (at least 2.5.1 and up) are C++-aware. */
+#define NO_IMPLICIT_EXTERN_C
+
/* The sun bundled assembler doesn't accept -Yd, (and neither does gas).
It's safe to pass -s always, even if -g is not used. */
#undef ASM_SPEC