mirror of
https://github.com/openharmony/commonlibrary_utils_lite.git
synced 2026-07-01 03:23:17 -04:00
!101 【OpenHarmony开源贡献者计划2022】fix: `OFFSET_OF_FIELD' redefined
Merge pull request !101 from c01dface/dev1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user