summaryrefslogtreecommitdiffstats
path: root/gcc/fixinc.svr4
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1994-12-09 22:31:38 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1994-12-09 22:31:38 +0000
commit3359aa0c1d90c8083fbd6e7395cd1f5441313e71 (patch)
tree19b3787cde97d8ed9a78911c3d1a1df0fab56c10 /gcc/fixinc.svr4
parent81c3788a71ac63414c368a061b71793e800436a3 (diff)
downloadppe42-gcc-3359aa0c1d90c8083fbd6e7395cd1f5441313e71.tar.gz
ppe42-gcc-3359aa0c1d90c8083fbd6e7395cd1f5441313e71.zip
(sys/byteorder.h): Turn extern inlines back into static inlines for
targets (such as SPARC/Solaris) that don't supply these functions in the C library. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8636 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc.svr4')
-rwxr-xr-xgcc/fixinc.svr424
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4
index ac7bdb15f8a..5c76cab8d15 100755
--- a/gcc/fixinc.svr4
+++ b/gcc/fixinc.svr4
@@ -1509,10 +1509,10 @@ cat <<'__EOF__' >${LIB}/sys/byteorder.h
#endif
#ifdef __STDC__
-extern __inline__ unsigned long htonl (unsigned long);
-extern __inline__ unsigned short htons (unsigned int);
-extern __inline__ unsigned long ntohl (unsigned long);
-extern __inline__ unsigned short ntohs (unsigned int);
+static __inline__ unsigned long htonl (unsigned long);
+static __inline__ unsigned short htons (unsigned int);
+static __inline__ unsigned long ntohl (unsigned long);
+static __inline__ unsigned short ntohs (unsigned int);
#endif /* defined (__STDC__) */
#if defined (__i386__)
@@ -1525,7 +1525,7 @@ extern __inline__ unsigned short ntohs (unsigned int);
/* We must use a new-style function definition, so that this will also
be valid for C++. */
-extern __inline__ unsigned long
+static __inline__ unsigned long
htonl (unsigned long __arg)
{
register unsigned long __result;
@@ -1538,7 +1538,7 @@ htonl (unsigned long __arg)
/* Convert a host short to a network short. */
-extern __inline__ unsigned short
+static __inline__ unsigned short
htons (unsigned int __arg)
{
register unsigned short __result;
@@ -1560,7 +1560,7 @@ htons (unsigned int __arg)
/* Convert a host long to a network long. */
-extern __inline__ unsigned long
+static __inline__ unsigned long
htonl (unsigned long __arg)
{
register unsigned long __result;
@@ -1574,7 +1574,7 @@ htonl (unsigned long __arg)
/* Convert a host short to a network short. */
-extern __inline__ unsigned short
+static __inline__ unsigned short
htons (unsigned int __arg)
{
register unsigned short __result;
@@ -1592,7 +1592,7 @@ htons (unsigned int __arg)
/* Convert a host long to a network long. */
-extern __inline__ unsigned long
+static __inline__ unsigned long
htonl (unsigned long __arg)
{
return __arg;
@@ -1600,7 +1600,7 @@ htonl (unsigned long __arg)
/* Convert a host short to a network short. */
-extern __inline__ unsigned short
+static __inline__ unsigned short
htons (unsigned int __arg)
{
return __arg;
@@ -1610,7 +1610,7 @@ htons (unsigned int __arg)
/* Convert a network long to a host long. */
-extern __inline__ unsigned long
+static __inline__ unsigned long
ntohl (unsigned long __arg)
{
return htonl (__arg);
@@ -1618,7 +1618,7 @@ ntohl (unsigned long __arg)
/* Convert a network short to a host short. */
-extern __inline__ unsigned short
+static __inline__ unsigned short
ntohs (unsigned int __arg)
{
return htons (__arg);
OpenPOWER on IntegriCloud