[platform] fix compiling issue when use SuccessOrDie (#9640)

Missing a header file included in the file `exit_code.h`, and
'otLogCritPlat' will not be declared. If using the function
`SuccessOrDie` with only inlcude the file
`src/lib/platform/exit_code.h`, it will have a compiling error
`'otLogCritPlat' was not declared in this scope`.
This commit is contained in:
Zhangwx
2023-11-24 09:07:57 -08:00
committed by GitHub
parent 75694d2860
commit a184dc9bbf
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -38,5 +38,6 @@ config("platform_config") {
static_library("libopenthread-platform") {
sources = platform_sources
public_deps = [ "../../core:libopenthread_core_headers" ]
public_configs = [ ":platform_config" ]
}
+1
View File
@@ -38,6 +38,7 @@
#include <stdlib.h>
#include <string.h>
#include <openthread/logging.h>
#ifdef __cplusplus
extern "C" {
#endif