diff --git a/subsys/testsuite/ztest/include/arch/cpu.h b/subsys/testsuite/ztest/include/arch/cpu.h index 8db9eea49d1..61bba9751b4 100644 --- a/subsys/testsuite/ztest/include/arch/cpu.h +++ b/subsys/testsuite/ztest/include/arch/cpu.h @@ -6,6 +6,10 @@ /* This file exists as a hack around Zephyr's dependencies */ +#ifdef __cplusplus +extern "C" { +#endif + /* Architecture thread structure */ struct _callee_saved { }; @@ -38,6 +42,10 @@ static inline bool arch_irq_unlocked(unsigned int key) return 0; } +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #include