diff --git a/include/sys/thread_stack.h b/include/sys/thread_stack.h index 87e7c74c54f6..8cde87a21e5b 100644 --- a/include/sys/thread_stack.h +++ b/include/sys/thread_stack.h @@ -17,6 +17,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /* Using typedef deliberately here, this is quite intended to be an opaque * type. * @@ -399,6 +403,12 @@ static inline char *Z_THREAD_STACK_BUFFER(k_thread_stack_t *sym) { return (char *)sym + K_THREAD_STACK_RESERVED; } + #endif /* CONFIG_USERSPACE */ + +#ifdef __cplusplus +} +#endif + #endif /* _ASMLANGUAGE */ #endif /* ZEPHYR_INCLUDE_SYS_THREAD_STACK_H */