From 9928d5db5b74c6b3948a8d5d43996deec4731f76 Mon Sep 17 00:00:00 2001 From: zhanghaibo Date: Mon, 17 Jan 2022 20:52:17 +0800 Subject: [PATCH] change header file of napi Signed-off-by: zhanghaibo Change-Id: I6a7f6778e3787c8688cdf9f562d41f75276135dd --- jsapi/worker/message_queue.h | 1 + jsapi/worker/worker.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/jsapi/worker/message_queue.h b/jsapi/worker/message_queue.h index ff4c7c5..67d4a48 100644 --- a/jsapi/worker/message_queue.h +++ b/jsapi/worker/message_queue.h @@ -19,6 +19,7 @@ #include #include #include "napi/native_api.h" +#include "napi/native_node_api.h" namespace OHOS::CCRuntime::Worker { using MessageDataType = napi_value; diff --git a/jsapi/worker/worker.h b/jsapi/worker/worker.h index 4419e97..e907e71 100644 --- a/jsapi/worker/worker.h +++ b/jsapi/worker/worker.h @@ -21,6 +21,7 @@ #include #include #include "message_queue.h" +#include "napi/native_api.h" #include "napi/native_node_api.h" #include "native_engine/native_engine.h" #include "utils/log.h" @@ -279,4 +280,4 @@ private: std::recursive_mutex liveStatusLock_ {}; }; } // namespace OHOS::CCRuntime::Worker -#endif // FOUNDATION_CCRUNTIME_JSAPI_WORKER_H \ No newline at end of file +#endif // FOUNDATION_CCRUNTIME_JSAPI_WORKER_H -- Gitee