diff options
| author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-17 00:32:50 +0000 |
|---|---|---|
| committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-02-17 00:32:50 +0000 |
| commit | f25f4bac3213842b2fbf1fc6ad7363eb7f0055d2 (patch) | |
| tree | fd85ed908ea2e01ee30dd95f171232031de45b31 | |
| parent | 9ba4048d10611b32258f875ff8c93d81f2ceec31 (diff) | |
| download | ppe42-gcc-f25f4bac3213842b2fbf1fc6ad7363eb7f0055d2.tar.gz ppe42-gcc-f25f4bac3213842b2fbf1fc6ad7363eb7f0055d2.zip | |
* fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32019 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rwxr-xr-x | gcc/fixinc/fixinc.svr4 | 10 |
2 files changed, 13 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 827b462260f..44a19e6a9c6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-02-16 Jason Merrill <jason@casey.cygnus.com> + + * fixinc/fixinc.svr4: Wrap byteorder.h with extern "C". + 2000-02-16 Nick Clifton <nickc@cygnus.com> * emit-rtl.c (emit_insn): Move RTL check into make_insn_raw. diff --git a/gcc/fixinc/fixinc.svr4 b/gcc/fixinc/fixinc.svr4 index 342b1464541..bc2eab1f45c 100755 --- a/gcc/fixinc/fixinc.svr4 +++ b/gcc/fixinc/fixinc.svr4 @@ -1,7 +1,7 @@ #! /bin/sh # Install modified versions of certain ANSI-incompatible # native System V Release 4 system include files. -# Copyright (C) 1994, 1996, 1997, 1998 Free Software Foundation, Inc. +# Copyright (C) 1994, 1996, 1997, 1998, 2000 Free Software Foundation, Inc. # Contributed by Ron Guilmette (rfg@monkeys.com). # # This file is part of GNU CC. @@ -1650,6 +1650,10 @@ cat <<'__EOF__' >${LIB}/sys/byteorder.h #error You lose! This file is only useful with GNU compilers. #endif +#ifdef __cplusplus +extern "C" { +#endif + #ifndef __BYTE_ORDER__ /* Byte order defines. These are as defined on UnixWare 1.1, but with double underscores added at the front and back. */ @@ -1774,6 +1778,10 @@ ntohs (unsigned int __arg) return htons (__arg); } +#ifdef __cplusplus +} /* extern "C" */ +#endif + __EOF__ if [ -r ${INPUT}/sys/byteorder.h ]; then |

