From 10f777689f634d3e23bf8f6169c77839e3a9dc77 Mon Sep 17 00:00:00 2001 From: Greg Miell Date: Mon, 18 Dec 2017 12:08:45 -0800 Subject: [PATCH] Add extern "C" to module.h (#2150) JerryScript-DCO-1.0-Signed-off-by: Greg Miell greg@gothack.ninja --- jerry-ext/include/jerryscript-ext/module.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jerry-ext/include/jerryscript-ext/module.h b/jerry-ext/include/jerryscript-ext/module.h index 31df799e7..21a644d5b 100644 --- a/jerry-ext/include/jerryscript-ext/module.h +++ b/jerry-ext/include/jerryscript-ext/module.h @@ -18,6 +18,11 @@ #include "jerryscript.h" +#ifdef __cplusplus +extern "C" +{ +#endif /* __cplusplus */ + /** * Declare the signature for the module initialization function. */ @@ -129,4 +134,7 @@ jerry_value_t jerryx_module_resolve (const jerry_value_t name, const jerryx_module_resolver_t **resolvers, size_t count); +#ifdef __cplusplus +} +#endif /* __cplusplus */ #endif /* !JERRYX_MODULE_H */