kernel: Add extern "C" to kernel_struct.h

Add extern "C" to kernel_struct.h to allow linkage in cpp.

Signed-off-by: Marcin Zwierz <marcin.zwierz@hidglobal.com>
This commit is contained in:
Marcin Zwierz 2021-06-09 08:06:35 +02:00 committed by Maureen Helm
commit 4cae9b81d5

View file

@ -30,6 +30,10 @@
#include <arch/structs.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define K_NUM_PRIORITIES \
(CONFIG_NUM_COOP_PRIORITIES + CONFIG_NUM_PREEMPT_PRIORITIES + 1)
@ -230,6 +234,10 @@ struct _timeout {
#endif
};
#ifdef __cplusplus
}
#endif
#endif /* _ASMLANGUAGE */
#endif /* ZEPHYR_KERNEL_INCLUDE_KERNEL_STRUCTS_H_ */