提交 beea9963 编写于 作者: O openharmony_ci 提交者: Gitee

!161 fix: fix NULL、UNUSED redefined issue

Merge pull request !161 from kenneth/NULL_redefined3
......@@ -335,7 +335,7 @@ typedef signed int INTPTR;
#ifdef __cplusplus
#define NULL 0L
#else
#define NULL ((VOID *)0)
#define NULL ((void*)0)
#endif
#endif
......@@ -411,10 +411,7 @@ static inline UINT32 LOS_Align(UINT32 addr, UINT32 boundary)
} while (0)
#ifndef UNUSED
#define UNUSED(var) \
do { \
(void)var; \
} while (0)
#define UNUSED(X) (void)X
#endif
#ifdef __cplusplus
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册