diff --git a/Framework/Foundation/3rdparty/x9/x9.h b/Framework/Foundation/3rdparty/x9/x9.h index bd8717916ddc3..229d7adf7dba0 100644 --- a/Framework/Foundation/3rdparty/x9/x9.h +++ b/Framework/Foundation/3rdparty/x9/x9.h @@ -32,6 +32,11 @@ #pragma once +#ifdef __cplusplus +extern "C" { +#define restrict __restrict__ +#endif + #include /* bool */ #include /* uint64_t */ @@ -164,3 +169,6 @@ __attribute__((nonnull)) void x9_broadcast_msg_to_all_node_inboxes( uint64_t const msg_sz, void const* restrict const msg); +#ifdef __cplusplus +} +#endif