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:
parent
55df308025
commit
2331d10d4b
1 changed files with 10 additions and 0 deletions
|
@ -17,6 +17,10 @@
|
||||||
#include <arch/cpu.h>
|
#include <arch/cpu.h>
|
||||||
#include <sys/util.h>
|
#include <sys/util.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Using typedef deliberately here, this is quite intended to be an opaque
|
/* Using typedef deliberately here, this is quite intended to be an opaque
|
||||||
* type.
|
* type.
|
||||||
*
|
*
|
||||||
|
@ -399,6 +403,12 @@ static inline char *Z_THREAD_STACK_BUFFER(k_thread_stack_t *sym)
|
||||||
{
|
{
|
||||||
return (char *)sym + K_THREAD_STACK_RESERVED;
|
return (char *)sym + K_THREAD_STACK_RESERVED;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_USERSPACE */
|
#endif /* CONFIG_USERSPACE */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _ASMLANGUAGE */
|
#endif /* _ASMLANGUAGE */
|
||||||
#endif /* ZEPHYR_INCLUDE_SYS_THREAD_STACK_H */
|
#endif /* ZEPHYR_INCLUDE_SYS_THREAD_STACK_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue