From 0df51b8aa96ebac46684f58f199e3bc8c88d751e Mon Sep 17 00:00:00 2001 From: Yaochenger <1516081466@qq.com> Date: Mon, 19 Dec 2022 09:41:56 +0800 Subject: [components][libc] 在rv32下编译时cstring.c中的strtok_r函数与libc.a中的strtok_r重定义,添加rt_weak MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/libc/compilers/common/cstring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/libc/compilers') diff --git a/components/libc/compilers/common/cstring.c b/components/libc/compilers/common/cstring.c index dec1213d79..733433598e 100644 --- a/components/libc/compilers/common/cstring.c +++ b/components/libc/compilers/common/cstring.c @@ -182,7 +182,7 @@ char *strndup(const char *s, size_t size) return news; } -char *strtok_r(char *str, const char *delim, char **saveptr) +rt_weak char *strtok_r(char *str, const char *delim, char **saveptr) { char *pbegin; char *pend = NULL; -- cgit v1.3.1