fatal: fix missing extern "C"

This was causing an error when building with pigweed as a module.

Signed-off-by: Yuval Peress <peress@google.com>
This commit is contained in:
Yuval Peress 2021-12-09 20:43:36 -07:00 committed by Maureen Helm
commit 7b86137b6c

View file

@ -14,6 +14,10 @@
#include <arch/cpu.h>
#include <toolchain.h>
#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 */