aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2005-03-11 21:46:01 +0000
committerPeter Wemm <peter@FreeBSD.org>2005-03-11 21:46:01 +0000
commit639ac97a88b0ded44021a0b3c69cd659b8306cc0 (patch)
tree797132a8d87d841214b4557f8d1263bedaed79df /sys/amd64
parent7df801860123c566de638bb9997442255d64fcbe (diff)
downloadsrc-639ac97a88b0ded44021a0b3c69cd659b8306cc0.tar.gz
src-639ac97a88b0ded44021a0b3c69cd659b8306cc0.zip
Match i386 rev 1.38 with __cplusplus support
Notes
Notes: svn path=/head/; revision=143429
Diffstat (limited to 'sys/amd64')
-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 6ed21185fd7d..24e59e42889f 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_ */