From 0d9a9bef73f5af2b5b9aca040e87ab445d5b885e Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Fri, 29 Sep 2017 16:51:36 -0700 Subject: [PATCH] syscalls: fix C++ issue Signed-off-by: Andrew Boie --- include/syscall.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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