libc/machine: fix config error

Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
wangmingrong1 2024-12-24 18:57:18 +08:00 committed by archer
parent 293a87a5e1
commit e3a733ae96

View file

@ -64,7 +64,7 @@ FAR char *ARCH_LIBCFUN(strcpy)(FAR char *dest, FAR const char *src);
size_t ARCH_LIBCFUN(strlen)(FAR const char *s);
#endif
#ifdef CONFIG_LIBC_ARCHSTRNCPY
#ifdef CONFIG_LIBC_ARCH_STRNCPY
FAR char *ARCH_LIBCFUN(strncpy)(FAR char *dest,
FAR const char *src, size_t n);
#endif
@ -212,7 +212,7 @@ size_t strlen(FAR const char *s)
}
#endif
#ifdef CONFIG_LIBC_ARCHSTRNCPY
#ifdef CONFIG_LIBC_ARCH_STRNCPY
FAR char *strncpy(FAR char *dest, FAR const char *src, size_t n)
{
# ifdef CONFIG_MM_KASAN