Merge pull request #5165 from cndabai/size_t
This commit is contained in:
commit
6eff5514a6
|
@ -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