diff --git a/interfaces/inner_api/event_handler.h b/interfaces/inner_api/event_handler.h index d18f37419b9432887513f4aa146fde9649c414d9..eb2d72c5b2102e5df9196286c6a9c73f16cb3715 100644 --- a/interfaces/inner_api/event_handler.h +++ b/interfaces/inner_api/event_handler.h @@ -19,8 +19,8 @@ #include "event_runner.h" #include "dumper.h" -#ifndef __has_builtin -#define __has_builtin(x) 0 +#ifndef has_builtin +#define has_builtin(x) 0 #endif namespace OHOS { @@ -35,7 +35,7 @@ struct Caller { std::string file_ {""}; int line_ {0}; std::string func_ {""}; -#if __has_builtin(__builtin_FILE) +#if has_builtin(__builtin_FILE) Caller(std::string file = __builtin_FILE(), int line = __builtin_LINE(), std::string func = __builtin_FUNCTION()) : file_(file), line_(line), func_(func) { }