diff options
| author | Meco Man <[email protected]> | 2021-06-13 17:36:42 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-06-13 17:36:42 +0800 |
| commit | 921e6064260f7afa80f3d10424bd49526241a3ee (patch) | |
| tree | 2f3a50e2b04270a4a5ebaff895f9b6f14188e7b6 /include/rtthread.h | |
| parent | b24447a60a6941568d58dd1ca358951674924ed2 (diff) | |
将defined(__CC_ARM) || defined(__CLANG_ARM) 改为 ifdef __ARMCC_VERSION
Diffstat (limited to 'include/rtthread.h')
| -rw-r--r-- | include/rtthread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rtthread.h b/include/rtthread.h index ccd2d147a8..cf897b0e5e 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -567,7 +567,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 |
