Skip to content

Commit 13baa03

Browse files
committed
Support using X9 from C++
1 parent 481cfe3 commit 13baa03

File tree

1 file changed

+8
-0
lines changed
  • Framework/Foundation/3rdparty/x9

1 file changed

+8
-0
lines changed

Framework/Foundation/3rdparty/x9/x9.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232

3333
#pragma once
3434

35+
#ifdef __cplusplus
36+
extern "C" {
37+
#define restrict __restrict__
38+
#endif
39+
3540
#include <stdbool.h> /* bool */
3641
#include <stdint.h> /* uint64_t */
3742

@@ -164,3 +169,6 @@ __attribute__((nonnull)) void x9_broadcast_msg_to_all_node_inboxes(
164169
uint64_t const msg_sz,
165170
void const* restrict const msg);
166171

172+
#ifdef __cplusplus
173+
}
174+
#endif

0 commit comments

Comments
 (0)