diff --git a/include/syscall.h b/include/syscall.h index 04405cffe19..6ec27a48933 100644 --- a/include/syscall.h +++ b/include/syscall.h @@ -13,6 +13,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /* * System Call Declaration macros * @@ -240,6 +244,11 @@ static inline u32_t _syscall_invoke10(u32_t arg1, u32_t arg2, u32_t arg3, } #endif /* CONFIG_USERSPACE */ + +#ifdef __cplusplus +} +#endif + #endif /* _ASMLANGUAGE */ #endif