diff options
-rw-r--r-- | gnu/gcc/gcc/config/openbsd.h | 4 | ||||
-rw-r--r-- | gnu/gcc/gcc/config/sparc/openbsd64.h | 3 |
2 files changed, 4 insertions, 3 deletions
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 <sys/types.h> #include <sys/mman.h> 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 "\ |