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:
parent
5a4070953d
commit
4cae9b81d5
1 changed files with 8 additions and 0 deletions
|
@ -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_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue