From b4c210c9856e223bce81e45b6fbe3782d852b28e Mon Sep 17 00:00:00 2001 From: Neil Chen Date: Mon, 1 Aug 2022 21:51:29 +0800 Subject: [PATCH] fix: `OFFSET_OF_FIELD' redefined Signed-off-by: Neil Chen --- include/utils_list.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/utils_list.h b/include/utils_list.h index a318859..b73cab9 100644 --- a/include/utils_list.h +++ b/include/utils_list.h @@ -377,7 +377,9 @@ static inline void UtilsListHeadInsertList(UTILS_DL_LIST *oldList, UTILS_DL_LIST * * @see */ +#ifndef OFFSET_OF_FIELD #define OFFSET_OF_FIELD(type, field) ((unsigned int)&((type *)0)->field) +#endif /* * @ingroup utils_list -- Gitee