From 93794b4811b6e7133929b29a0614f6183c1cbe52 Mon Sep 17 00:00:00 2001 From: Gavin1012 Date: Mon, 23 May 2022 20:47:01 +0800 Subject: [PATCH] fixed ada024d from https://gitee.com/gavin1012_hw/third_party_jerryscript/pulls/72 add extern C in header file Signed-off-by: Gavin1012 --- jerry-core/api/generate-bytecode.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jerry-core/api/generate-bytecode.h b/jerry-core/api/generate-bytecode.h index d5d370d2..16bdbaea 100644 --- a/jerry-core/api/generate-bytecode.h +++ b/jerry-core/api/generate-bytecode.h @@ -7,6 +7,11 @@ #ifndef GENERATE_BYTECODE_H #define GENERATE_BYTECODE_H +#ifdef __cplusplus +extern "C" +{ +#endif /* __cplusplus */ + #ifdef JERRY_FOR_IAR_CONFIG #include "jerryscript.h" @@ -48,4 +53,7 @@ void jerry_external_context_init(uint32_t heap_size, jerry_context_alloc_t alloc #endif // JERRY_FOR_IAR_CONFIG +#ifdef __cplusplus +} +#endif /* __cplusplus */ #endif // GENERATE_BYTECODE_H -- Gitee