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:
parent
56beca3828
commit
7b86137b6c
1 changed files with 8 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue