From 639ac97a88b0ded44021a0b3c69cd659b8306cc0 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Fri, 11 Mar 2005 21:46:01 +0000 Subject: [PATCH] Match i386 rev 1.38 with __cplusplus support --- sys/amd64/include/endian.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 #include +#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_ */