summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common/cstring.c
diff options
context:
space:
mode:
authorguozhanxin <[email protected]>2023-05-17 17:17:38 +0800
committerMan, Jianting (Meco) <[email protected]>2023-05-17 12:09:10 -0400
commit82ccbc40db1d81eb35efd35f915096ddeee3b2b9 (patch)
treebfd1f7f922aab312b1555bf41c8549e295a37c96 /components/libc/compilers/common/cstring.c
parent48557de14897afb0965695d272d07f83f0b08c42 (diff)
support llvm-arm 16.0
Diffstat (limited to 'components/libc/compilers/common/cstring.c')
-rw-r--r--components/libc/compilers/common/cstring.c2
1 files changed, 2 insertions, 0 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)
{