diff options
Diffstat (limited to 'components/libc/compilers/common')
| -rw-r--r-- | components/libc/compilers/common/cstring.c | 2 | ||||
| -rw-r--r-- | components/libc/compilers/common/extension/SConscript | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/components/libc/compilers/common/cstring.c b/components/libc/compilers/common/cstring.c index 733433598e..59c516d273 100644 --- a/components/libc/compilers/common/cstring.c +++ b/components/libc/compilers/common/cstring.c @@ -19,10 +19,12 @@ * * @note The bzero() function is deprecated (marked as LEGACY in POSIX. 1-2001). */ +#ifndef RT_USING_PICOLIBC void bzero(void* s, size_t n) { rt_memset(s, 0, n); } +#endif void bcopy(const void* src, void* dest, size_t n) { diff --git a/components/libc/compilers/common/extension/SConscript b/components/libc/compilers/common/extension/SConscript index ddd83c8234..75bb23d18e 100644 --- a/components/libc/compilers/common/extension/SConscript +++ b/components/libc/compilers/common/extension/SConscript @@ -9,7 +9,7 @@ group = [] src += Glob('*.c') -if rtconfig.PLATFORM != 'gcc': +if rtconfig.PLATFORM != 'gcc' and rtconfig.PLATFORM != 'llvm-arm': group = DefineGroup('Compiler', src, depend = [''], CPPPATH = CPPPATH) list = os.listdir(cwd) |
