Merge pull request #5165 from cndabai/size_t

This commit is contained in:
guo 2021-10-14 07:52:38 +08:00 committed by GitHub
commit 6eff5514a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) */