Skip to content

Commit 1252f72

Browse files
Jiax-cnxiangjia.xj
andauthored
feat: use C linkage in aot_comp_option.h for C++ embeding (#4106)
Co-authored-by: xiangjia.xj <[email protected]>
1 parent 851a26d commit 1252f72

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

core/iwasm/include/aot_comp_option.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
#include <stdint.h>
1010

11+
#ifdef __cplusplus
12+
extern "C" {
13+
#endif
14+
1115
typedef struct {
1216
/* Enables or disables bounds checks for stack frames. When enabled, the AOT
1317
* compiler generates code to check if the stack pointer is within the
@@ -88,4 +92,8 @@ typedef struct AOTCompOption {
8892
const char *builtin_intrinsics;
8993
} AOTCompOption, *aot_comp_option_t;
9094

95+
#ifdef __cplusplus
96+
}
9197
#endif
98+
99+
#endif /* end of __AOT_COMP_OPTION_H__ */

0 commit comments

Comments
 (0)