Skip to content

Commit

Permalink
Support using X9 from C++
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Sep 19, 2024
1 parent 481cfe3 commit 13baa03
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Framework/Foundation/3rdparty/x9/x9.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@

#pragma once

#ifdef __cplusplus
extern "C" {
#define restrict __restrict__
#endif

#include <stdbool.h> /* bool */
#include <stdint.h> /* uint64_t */

Expand Down Expand Up @@ -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

0 comments on commit 13baa03

Please sign in to comment.