From d006905c88ce9b6eaad53bf5546278d24f80081a Mon Sep 17 00:00:00 2001 From: mazhiyuan Date: Wed, 13 Oct 2021 16:23:06 +0800 Subject: 修改size_t为rt_size_t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/rtthread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/rtthread.h') diff --git a/include/rtthread.h b/include/rtthread.h index cee58e402b..83be7d1ebc 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -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); -- cgit v1.3.1