summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaochenger <[email protected]>2022-12-19 09:41:56 +0800
committerMan, Jianting (Meco) <[email protected]>2022-12-18 23:38:41 -0500
commit0df51b8aa96ebac46684f58f199e3bc8c88d751e (patch)
treea1491b4378dc851a0c6e2e99c3044bc3536ea2aa
parentb256411736057ce91787c3605648bfd616045e38 (diff)
[components][libc] 在rv32下编译时cstring.c中的strtok_r函数与libc.a中的strtok_r重定义,添加rt_weak
-rw-r--r--components/libc/compilers/common/cstring.c2
1 files changed, 1 insertions, 1 deletions
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;