提交 3b45c483 编写于 作者: O openharmony_ci 提交者: Gitee

!40 Resolve problems occurring while building and running on Linux host

Merge pull request !40 from Zbigniew/ostc-dev
......@@ -26,6 +26,7 @@
#define _UTILS_LIST_H
#include <stdbool.h>
#include <stdint.h>
#include "ohos_types.h"
#ifdef __cplusplus
......@@ -377,7 +378,7 @@ 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
*/
#define OFFSET_OF_FIELD(type, field) ((unsigned int)&((type *)0)->field)
#define OFFSET_OF_FIELD(type, field) ((uintptr_t)&((type *)0)->field)
/*
* @ingroup utils_list
......@@ -398,7 +399,7 @@ 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
*/
#define UTILS_OFF_SET_OF(type, member) ((unsigned int)&((type *)0)->member)
#define UTILS_OFF_SET_OF(type, member) ((uintptr_t)&((type *)0)->member)
/*
* @ingroup utils_list
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册