summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/endian.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2005-03-11 21:46:01 +0000
committerpeter <peter@FreeBSD.org>2005-03-11 21:46:01 +0000
commit31049ced0105eeeb90fcd2225be46e482e005a4d (patch)
tree797132a8d87d841214b4557f8d1263bedaed79df /sys/amd64/include/endian.h
parent985987350f3b4dd207ac169304c767bc5f1b8f6c (diff)
downloadFreeBSD-src-31049ced0105eeeb90fcd2225be46e482e005a4d.zip
FreeBSD-src-31049ced0105eeeb90fcd2225be46e482e005a4d.tar.gz
Match i386 rev 1.38 with __cplusplus support
Diffstat (limited to 'sys/amd64/include/endian.h')
-rw-r--r--sys/amd64/include/endian.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/amd64/include/endian.h b/sys/amd64/include/endian.h
index 6ed2118..24e59e4 100644
--- a/sys/amd64/include/endian.h
+++ b/sys/amd64/include/endian.h
@@ -36,6 +36,10 @@
#include <sys/cdefs.h>
#include <sys/_types.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Define the order of 32-bit words in 64-bit words.
*/
@@ -188,4 +192,8 @@ __bswap16(__uint16_t _x)
#endif /* __GNUCLIKE_ASM && __GNUCLIKE_BUILTIN_CONSTANT_P */
+#ifdef __cplusplus
+}
+#endif
+
#endif /* !_MACHINE_ENDIAN_H_ */
OpenPOWER on IntegriCloud