Skip to content

Commit

Permalink
include: mem_domain use C linkage
Browse files Browse the repository at this point in the history
add extern C when C++ is used to treat the code as C

Signed-off-by: Maximilian Bachmann <[email protected]>
  • Loading branch information
maxbachmann authored and carlescufi committed Oct 28, 2020
1 parent de1b7e4 commit 00f9bc6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/app_memory/mem_domain.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 */

0 comments on commit 00f9bc6

Please sign in to comment.