fix: fix NULL UNUSED redefined issue
change NULL、 UNUSED macro definition close https://gitee.com/openharmony/kernel_liteos_m/issues/I3E9S3 Signed-off-by: kenneth <459864689@qq.com>
This commit is contained in:
parent
05937ee49c
commit
765bd55199
|
@ -335,7 +335,7 @@ typedef signed int INTPTR;
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#define NULL 0L
|
#define NULL 0L
|
||||||
#else
|
#else
|
||||||
#define NULL ((VOID *)0)
|
#define NULL ((void*)0)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -411,10 +411,7 @@ static inline UINT32 LOS_Align(UINT32 addr, UINT32 boundary)
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#ifndef UNUSED
|
#ifndef UNUSED
|
||||||
#define UNUSED(var) \
|
#define UNUSED(X) (void)X
|
||||||
do { \
|
|
||||||
(void)var; \
|
|
||||||
} while (0)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Reference in New Issue