summaryrefslogtreecommitdiff
path: root/include/rtdef.h
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-11-24 17:38:15 +0800
committerGitHub <[email protected]>2021-11-24 17:38:15 +0800
commit6a6b43fe3e3e75b3bbcc838f7f3d0060e33c5386 (patch)
tree82603ece690c334261268e93731cce4daa8f9559 /include/rtdef.h
parentf11113f55780a71345bbd0dffda6e3b904fc76da (diff)
parentcefc77ad11039eb0f93162fde3b8584c880dcf12 (diff)
Merge pull request #5261 from mysterywolf/weak
[kernel] prepare to support full functional sprintf-family functions
Diffstat (limited to 'include/rtdef.h')
-rw-r--r--include/rtdef.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index 677a425183..9975f8239f 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -76,11 +76,13 @@ 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 */
-#endif
-#endif
+typedef unsigned int rt_size_t; /**< Type for size number */
+#endif /* ARCH_CPU_64BIT */
+#endif /* RT_USING_ARCH_DATA_TYPE */
typedef int rt_bool_t; /**< boolean type */
typedef long rt_base_t; /**< Nbit CPU related date type */
@@ -90,7 +92,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_ubase_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 */