diff options
| author | Meco Man <[email protected]> | 2022-07-01 03:00:53 -0400 |
|---|---|---|
| committer | guo <[email protected]> | 2022-07-01 15:51:28 +0800 |
| commit | 9623706effd3f2e3dd1315daa13bc8d0eea168c3 (patch) | |
| tree | 7f2f8a92f8a22588b1a428c72faad4789670f634 /include | |
| parent | 6a05ddf63d1202456a37e970e5a9ab58370ed093 (diff) | |
Revert "解决将RT_NULL当做数字0使用的问题"
This reverts commit 6a05ddf63d1202456a37e970e5a9ab58370ed093.
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index d8aac08ca4..dd5dffc6c5 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -123,11 +123,7 @@ typedef rt_base_t rt_off_t; /**< Type for offset */ #define RT_FALSE 0 /**< boolean fails */ /* null pointer definition */ -#ifdef RT_USING_LIBC -#define RT_NULL NULL /**< null pointer */ -#else -#define RT_NULL (0) /**< null pointer */ -#endif /* RT_USING_LIBC */ +#define RT_NULL 0 /**@}*/ |
