diff options
author | Jason Merrill <jason@casey.cygnus.com> | 2000-02-17 00:32:50 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2000-02-16 19:32:50 -0500 |
commit | 980be18f769286a7a9908b4df48626fd6fee6926 (patch) | |
tree | fd85ed908ea2e01ee30dd95f171232031de45b31 /gcc/fixinc | |
parent | 4f1c5b7dbf1c92d78f0db4f99ba77940ec2c07b7 (diff) | |
download | gcc-980be18f769286a7a9908b4df48626fd6fee6926.zip gcc-980be18f769286a7a9908b4df48626fd6fee6926.tar.gz gcc-980be18f769286a7a9908b4df48626fd6fee6926.tar.bz2 |
* fixinc/fixinc.svr4: Wrap byteorder.h with extern "C".
From-SVN: r32019
Diffstat (limited to 'gcc/fixinc')
-rwxr-xr-x | gcc/fixinc/fixinc.svr4 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/fixinc/fixinc.svr4 b/gcc/fixinc/fixinc.svr4 index 342b146..bc2eab1 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 |