ztest: make arc/cpu.h override C++ safe
This override header declares structures and inline functions, which must be given C language linkage to avoid conflicting declaration errors with other headers. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
83aedb2377
commit
dfb9f11be3
1 changed files with 8 additions and 0 deletions
|
@ -6,6 +6,10 @@
|
||||||
|
|
||||||
/* This file exists as a hack around Zephyr's dependencies */
|
/* This file exists as a hack around Zephyr's dependencies */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Architecture thread structure */
|
/* Architecture thread structure */
|
||||||
struct _callee_saved {
|
struct _callee_saved {
|
||||||
};
|
};
|
||||||
|
@ -38,6 +42,10 @@ static inline bool arch_irq_unlocked(unsigned int key)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#include <sys/arch_interface.h>
|
#include <sys/arch_interface.h>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue