Browse Source

[components][libc] 在rv32下编译时cstring.c中的strtok_r函数与libc.a中的strtok_r重定义,添加rt_weak

Yaochenger 2 years ago
parent
commit
0df51b8aa9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/libc/compilers/common/cstring.c

+ 1 - 1
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;