From 7b86137b6cca28c3d9c5f96b84a4408de198c8de Mon Sep 17 00:00:00 2001 From: Yuval Peress Date: Thu, 9 Dec 2021 20:43:36 -0700 Subject: [PATCH] fatal: fix missing extern "C" This was causing an error when building with pigweed as a module. Signed-off-by: Yuval Peress --- include/fatal.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/fatal.h b/include/fatal.h index 932acb53dfd..572d6dcae80 100644 --- a/include/fatal.h +++ b/include/fatal.h @@ -14,6 +14,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /** * @defgroup fatal_apis Fatal error APIs * @ingroup kernel_apis @@ -100,4 +104,8 @@ void z_fatal_error(unsigned int reason, const z_arch_esf_t *esf); /** @} */ +#ifdef __cplusplus +} +#endif + #endif /* ZEPHYR_INCLUDE_FATAL_H */