From 1252f723c2043685302d7db29145f188305c76d2 Mon Sep 17 00:00:00 2001 From: jia xiang <58927968+Jiax-cn@users.noreply.github.com> Date: Tue, 25 Feb 2025 07:01:16 +0800 Subject: [PATCH] feat: use C linkage in aot_comp_option.h for C++ embeding (#4106) Co-authored-by: xiangjia.xj --- core/iwasm/include/aot_comp_option.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/iwasm/include/aot_comp_option.h b/core/iwasm/include/aot_comp_option.h index a97275d24..fda17d5a7 100644 --- a/core/iwasm/include/aot_comp_option.h +++ b/core/iwasm/include/aot_comp_option.h @@ -8,6 +8,10 @@ #include +#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 @@ -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__ */ \ No newline at end of file