diff options
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/include/endian.h | 8 |
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_ */ |