summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/endian.h
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-02-19 02:17:16 +0000
committermike <mike@FreeBSD.org>2002-02-19 02:17:16 +0000
commit10ca98b24da133ea8332bb1eafa4287a49ddc3ed (patch)
tree3867d46248f6bc974ffce9c5d0aea390a4c5abee /sys/i386/include/endian.h
parent520242dafe90676ea1fa0110a3c29dfd47731ed7 (diff)
downloadFreeBSD-src-10ca98b24da133ea8332bb1eafa4287a49ddc3ed.zip
FreeBSD-src-10ca98b24da133ea8332bb1eafa4287a49ddc3ed.tar.gz
Add C++ support.
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 f22988b..7428ee3 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_ */
OpenPOWER on IntegriCloud