mirror of
https://github.com/espressif/openthread.git
synced 2026-08-09 20:27:47 +00:00
[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:
@@ -38,5 +38,6 @@ config("platform_config") {
|
||||
|
||||
static_library("libopenthread-platform") {
|
||||
sources = platform_sources
|
||||
public_deps = [ "../../core:libopenthread_core_headers" ]
|
||||
public_configs = [ ":platform_config" ]
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <openthread/logging.h>
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user