From 2cdc3b237fe24475f3e13c97284ed32781eddced Mon Sep 17 00:00:00 2001 From: mrzhang Date: Tue, 17 Jan 2023 01:24:34 -0800 Subject: [PATCH] fix: Fixed goodix compilation errors Signed-off-by: mrzhang --- utils/los_compiler.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/los_compiler.h b/utils/los_compiler.h index 2c9efd9b..465e7f03 100644 --- a/utils/los_compiler.h +++ b/utils/los_compiler.h @@ -527,6 +527,7 @@ static inline UINT64 __atomic_exchange_8(volatile void *mem, UINT64 val, int mod } #endif /* __XTENSA_LX6__ */ +#if (LOSCFG_LIBC_NEWLIB == 1) #define ALIAS_OF(of) __attribute__((alias(#of))) #define FUNC_ALIAS(real_func, new_alias, args_list, return_type) \ return_type new_alias args_list ALIAS_OF(real_func) @@ -534,6 +535,7 @@ static inline UINT64 __atomic_exchange_8(volatile void *mem, UINT64 val, int mod #else #define FUNC_ALIAS(real_func, new_alias, args_list, return_type) +#endif #endif /* __GNUC__ */ -- Gitee