aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/include/endian.h
diff options
context:
space:
mode:
authorMike Barcroft <mike@FreeBSD.org>2002-02-19 02:17:16 +0000
committerMike Barcroft <mike@FreeBSD.org>2002-02-19 02:17:16 +0000
commitd1f7a1b79ce883fd98efbe224f1207dccb6f9d4d (patch)
tree3867d46248f6bc974ffce9c5d0aea390a4c5abee /sys/i386/include/endian.h
parent47aed1247fc70bf9accaa03dac3a6ef66f5af4c5 (diff)
downloadsrc-d1f7a1b79ce883fd98efbe224f1207dccb6f9d4d.tar.gz
src-d1f7a1b79ce883fd98efbe224f1207dccb6f9d4d.zip
Add C++ support.
Notes
Notes: svn path=/head/; revision=90885
Diffstat (limited to 'sys/i386/include/endian.h')
-rw-r--r--sys/i386/include/endian.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/i386/include/endian.h b/sys/i386/include/endian.h
index f22988baf031..7428ee3609f7 100644
--- a/sys/i386/include/endian.h
+++ b/sys/i386/include/endian.h
@@ -37,6 +37,7 @@
#ifndef _MACHINE_ENDIAN_H_
#define _MACHINE_ENDIAN_H_
+#include <sys/cdefs.h>
#include <machine/ansi.h>
/*
@@ -59,6 +60,8 @@
#ifdef __GNUC__
+__BEGIN_DECLS
+
static __inline __uint32_t
__htonl(__uint32_t __x)
{
@@ -95,6 +98,8 @@ __ntohs(__uint16_t __x)
return (__htons(__x));
}
+__END_DECLS
+
#endif /* __GNUC__ */
#endif /* !_MACHINE_ENDIAN_H_ */