!101 【OpenHarmony开源贡献者计划2022】fix: `OFFSET_OF_FIELD' redefined

Merge pull request !101 from c01dface/dev1
This commit is contained in:
openharmony_ci
2022-08-04 12:26:17 +00:00
committed by Gitee
+2
View File
@@ -377,7 +377,9 @@ static inline void UtilsListHeadInsertList(UTILS_DL_LIST *oldList, UTILS_DL_LIST
* <ul><li>utils_list.h: the header file that contains the API declaration.</li></ul>
* @see
*/
#ifndef OFFSET_OF_FIELD
#define OFFSET_OF_FIELD(type, field) ((unsigned int)&((type *)0)->field)
#endif
/*
* @ingroup utils_list