Merge pull request #4796 from mysterywolf/__CLANG_ARM

将defined(__CC_ARM) || defined(__CLANG_ARM) 改为 ifdef __ARMCC_VERSION
This commit is contained in:
Bernard Xiong
2021-06-24 21:05:05 +08:00
committed by GitHub
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -566,7 +566,7 @@ rt_size_t rt_strlen(const char *src);
#endif /*RT_KSERVICE_USING_STDLIB*/
char *rt_strdup(const char *s);
#if defined(__CC_ARM) || defined(__CLANG_ARM)
#ifdef __ARMCC_VERSION
/* lack strdup interface */
char* strdup(const char* str);
#endif