!1008 fix: 非gcc形态下FUNC_ALIAS编译错误

Merge pull request !1008 from Zhaotianyu/20230111symbol_fix
This commit is contained in:
openharmony_ci 2023-01-11 06:49:43 +00:00 committed by Gitee
commit dbf0498bab
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 6 additions and 2 deletions

View File

@ -525,13 +525,17 @@ static inline UINT64 __atomic_exchange_8(volatile void *mem, UINT64 val, int mod
free_lock (memP, model);
return ret;
}
#endif
#endif /* __XTENSA_LX6__ */
#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)
#endif
#else
#define FUNC_ALIAS(real_func, new_alias, args_list, return_type)
#endif /* __GNUC__ */
#ifdef __cplusplus
#if __cplusplus