Skip to content

Commit

Permalink
feat: use C linkage in aot_comp_option.h for C++ embeding (#4106)
Browse files Browse the repository at this point in the history
Co-authored-by: xiangjia.xj <[email protected]>
  • Loading branch information
Jiax-cn and xiangjia.xj authored Feb 24, 2025
1 parent 851a26d commit 1252f72
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/iwasm/include/aot_comp_option.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
/* Enables or disables bounds checks for stack frames. When enabled, the AOT
* compiler generates code to check if the stack pointer is within the
Expand Down Expand Up @@ -88,4 +92,8 @@ typedef struct AOTCompOption {
const char *builtin_intrinsics;
} AOTCompOption, *aot_comp_option_t;

#ifdef __cplusplus
}
#endif

#endif /* end of __AOT_COMP_OPTION_H__ */

0 comments on commit 1252f72

Please sign in to comment.