diff --git a/utils/los_compiler.h b/utils/los_compiler.h index 2c9efd9be1ca8dede515e0f0ef4bf2be97ac2329..465e7f0361a71bc38459e2cd063d7d158c293c4f 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__ */