修改size_t为rt_size_t
This commit is contained in:
parent
0873b8163b
commit
d006905c88
|
@ -596,7 +596,7 @@ rt_size_t rt_strnlen(const char *s, rt_ubase_t maxlen);
|
|||
#ifdef __ARMCC_VERSION
|
||||
/* MDK doesn't have these APIs */
|
||||
char* strdup(const char* str);
|
||||
size_t strnlen(const char *s, size_t maxlen);
|
||||
rt_size_t strnlen(const char *s, rt_size_t maxlen);
|
||||
#endif /* __ARMCC_VERSION */
|
||||
|
||||
void rt_show_version(void);
|
||||
|
|
|
@ -545,7 +545,7 @@ rt_size_t rt_strnlen(const char *s, rt_ubase_t maxlen)
|
|||
}
|
||||
RTM_EXPORT(rt_strnlen);
|
||||
#ifdef __ARMCC_VERSION
|
||||
size_t strnlen(const char *s, size_t maxlen) __attribute__((alias("rt_strnlen")));
|
||||
rt_size_t strnlen(const char *s, rt_size_t maxlen) __attribute__((alias("rt_strnlen")));
|
||||
#endif /* __ARMCC_VERSION */
|
||||
#endif /* !defined(RT_KSERVICE_USING_STDLIB) || defined(__ARMCC_VERSION) */
|
||||
|
||||
|
|
Loading…
Reference in New Issue