libc/machine: fix config error
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
This commit is contained in:
parent
293a87a5e1
commit
e3a733ae96
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue