include: sys: thread_stack add missing extern "C" on C++

Add C linkage for compiling with C++

Signed-off-by: Alexander Wachter <alexander.wachter@leica-geosystems.com>
This commit is contained in:
Alexander Wachter 2020-12-14 16:44:17 +01:00 committed by Carles Cufí
commit 2331d10d4b

View file

@ -17,6 +17,10 @@
#include <arch/cpu.h>
#include <sys/util.h>
#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 */