diff options
| author | Meco Man <[email protected]> | 2021-11-22 15:02:47 -0500 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-11-22 19:16:11 -0500 |
| commit | cefc77ad11039eb0f93162fde3b8584c880dcf12 (patch) | |
| tree | bc5f503a30f1041f191ae41ebd43a9f97fae5e9e | |
| parent | 857428bd233730f1e717d0c0b5b6b8d5eb2d35f4 (diff) | |
modify rt_size_t's type
| -rw-r--r-- | include/rtdef.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index eb9381e71f..240161ac8c 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -75,9 +75,11 @@ typedef unsigned int rt_uint32_t; /**< 32bit unsigned inte #ifdef ARCH_CPU_64BIT typedef signed long rt_int64_t; /**< 64bit integer type */ typedef unsigned long rt_uint64_t; /**< 64bit unsigned integer type */ +typedef unsigned long rt_size_t; /**< Type for size number */ #else typedef signed long long rt_int64_t; /**< 64bit integer type */ typedef unsigned long long rt_uint64_t; /**< 64bit unsigned integer type */ +typedef unsigned int rt_size_t; /**< Type for size number */ #endif /* ARCH_CPU_64BIT */ #endif /* RT_USING_ARCH_DATA_TYPE */ @@ -89,7 +91,6 @@ typedef rt_base_t rt_err_t; /**< Type for error numb typedef rt_uint32_t rt_time_t; /**< Type for time stamp */ typedef rt_uint32_t rt_tick_t; /**< Type for tick count */ typedef rt_base_t rt_flag_t; /**< Type for flags */ -typedef rt_uint32_t rt_size_t; /**< Type for size number */ typedef rt_ubase_t rt_dev_t; /**< Type for device */ typedef rt_base_t rt_off_t; /**< Type for offset */ |
