include: mem_domain use C linkage

add extern C when C++ is used to treat the code as C

Signed-off-by: Maximilian Bachmann <m.bachmann@acontis.com>
This commit is contained in:
Maximilian Bachmann 2020-10-26 15:14:06 +01:00 committed by Carles Cufí
parent de1b7e48d1
commit 00f9bc6582

View File

@ -13,6 +13,10 @@
#include <sys/dlist.h>
#include <toolchain.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Forward declaration */
struct k_thread;
typedef struct k_thread *k_tid_t;
@ -205,5 +209,9 @@ extern void k_mem_domain_add_thread(struct k_mem_domain *domain,
__deprecated
extern void k_mem_domain_remove_thread(k_tid_t thread);
#ifdef __cplusplus
}
#endif
/** @} */
#endif /* INCLUDE_APP_MEMORY_MEM_DOMAIN_H */