From b529fd26f933e18da058164ba7adada3eee9a55a Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 6 Oct 2012 14:39:08 +0000 Subject: Our system headers are supposed to be C++-aware these days so stop GCC from wrapping them with an implicit extern "C" since that breaks the webkit port. Help from matthew@ and landry@. ok landry@ --- gnu/gcc/gcc/config/openbsd.h | 4 ++++ gnu/gcc/gcc/config/sparc/openbsd64.h | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'gnu/gcc') diff --git a/gnu/gcc/gcc/config/openbsd.h b/gnu/gcc/gcc/config/openbsd.h index fba4ae42a46..658c5e44265 100644 --- a/gnu/gcc/gcc/config/openbsd.h +++ b/gnu/gcc/gcc/config/openbsd.h @@ -349,5 +349,9 @@ __enable_execute_stack (void *addr) \ */ #define NO_UNSAFE_BUILTINS +/* The system headers on OpenBSD are C++-aware. */ +#undef NO_IMPLICIT_EXTERN_C +#define NO_IMPLICIT_EXTERN_C + #include #include diff --git a/gnu/gcc/gcc/config/sparc/openbsd64.h b/gnu/gcc/gcc/config/sparc/openbsd64.h index dc419b97f8b..a42463f9557 100644 --- a/gnu/gcc/gcc/config/sparc/openbsd64.h +++ b/gnu/gcc/gcc/config/sparc/openbsd64.h @@ -48,9 +48,6 @@ Boston, MA 02110-1301, USA. */ #undef MD_EXEC_PREFIX #undef MD_STARTFILE_PREFIX -/* Inherited from sp64-elf. */ -#undef NO_IMPLICIT_EXTERN_C - #undef ASM_SPEC #ifdef PIE_DEFAULT #define ASM_SPEC "\ -- cgit v1.2.3