Fix compilation issue on Android imported by rebasing

Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5TJW9

Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
Change-Id: Ie30a8e93104fc231ab8ad7731b12a2fd85b58d8f
This commit is contained in:
panzhenyu1 2022-09-28 11:45:45 +08:00
parent a3c01cf276
commit 4fba5cac73

View File

@ -143,12 +143,12 @@ private:
std::ostringstream stream_;
};
#elif defined(PANDA_TARGET_ANDROID) // PANDA_TARGET_ANDROID
template<Level level, Component component>
template<Level level>
class PUBLIC_API AndroidLog {
public:
AndroidLog()
{
std::string str = Log::GetComponentStr(component);
std::string str = "[default] ";
stream_ << str;
}
~AndroidLog();
@ -196,7 +196,7 @@ private:
#define ARK_LOG(level, component) panda::ecmascript::LOGGABLE_##level && \
panda::ecmascript::HiLog<LOG_##level, (component)>()
#elif defined(PANDA_TARGET_ANDROID)
#define ARK_LOG(level, component) panda::ecmascript::AndroidLog<(level), (component)>()
#define ARK_LOG(level, component) panda::ecmascript::AndroidLog<(level)>()
#else
#define ARK_LOG(level, component) panda::ecmascript::Log::LogIsLoggable(level, component) && \
panda::ecmascript::StdLog<(level), (component)>()