修改size_t为rt_size_t

This commit is contained in:
mazhiyuan 2021-10-13 16:23:06 +08:00
parent 0873b8163b
commit d006905c88
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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) */