libs/libc: correct config define of arch functions

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2023-04-04 15:19:11 +08:00 committed by Gustavo Henrique Nihei
parent d3f659b854
commit 4fbf5f7a4b
5 changed files with 20 additions and 4 deletions

View File

@ -112,6 +112,22 @@ config LIBC_ARCH_STRRCHR
bool
default n
config LIBC_ARCH_STRCAT
bool
default n
config LIBC_ARCH_STRNCAT
bool
default n
config LIBC_ARCH_STRCASECMP
bool
default n
config LIBC_ARCH_STRNCASECMP
bool
default n
config LIBC_ARCH_ELF
bool
default n

View File

@ -31,7 +31,7 @@
* Public Functions
****************************************************************************/
#ifndef CONFIG_ARCH_STRCASECMP
#ifndef CONFIG_LIBC_ARCH_STRCASECMP
#undef strcasecmp /* See mm/README.txt */
int strcasecmp(FAR const char *cs, FAR const char *ct)
{

View File

@ -30,7 +30,7 @@
* Public Functions
****************************************************************************/
#ifndef CONFIG_ARCH_STRCAT
#ifndef CONFIG_LIBC_ARCH_STRCAT
#undef strcat /* See mm/README.txt */
FAR char *strcat(FAR char *dest, FAR const char *src)
{

View File

@ -32,7 +32,7 @@
* Public Functions
****************************************************************************/
#ifndef CONFIG_ARCH_STRNCASECMP
#ifndef CONFIG_LIBC_ARCH_STRNCASECMP
#undef strncasecmp /* See mm/README.txt */
int strncasecmp(FAR const char *cs, FAR const char *ct, size_t nb)
{

View File

@ -30,7 +30,7 @@
* Public Functions
****************************************************************************/
#ifndef CONFIG_ARCH_STRNCAT
#ifndef CONFIG_LIBC_ARCH_STRNCAT
#undef strncat /* See mm/README.txt */
FAR char *strncat(FAR char *dest, FAR const char *src, size_t n)
{