libs/libc/string/Make.defs: Need to include build support for files needed when CHAR_BIT != 8.

This commit is contained in:
Gregory Nutt 2019-11-02 12:38:08 -06:00
parent dc3ae12545
commit 3927be2612
2 changed files with 8 additions and 1 deletions

View file

@ -44,6 +44,10 @@
#include <stddef.h>
/* Non-standard support for cases where CHAR_BIT != 8 carried in strings.h
* only for convenience. See include/nuttx/b2c.h.
*/
#include <nuttx/b2c.h>
/****************************************************************************

View file

@ -1,7 +1,8 @@
############################################################################
# libs/libc/string/Make.defs
#
# Copyright (C) 2011-2012, 2014, 2016-2018 Gregory Nutt. All rights reserved.
# Copyright (C) 2011-2012, 2014, 2016-2019 Gregory Nutt. All rights
# reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
@ -45,6 +46,8 @@ CSRCS += lib_strncasecmp.c lib_strncat.c lib_strncmp.c lib_strncpy.c
CSRCS += lib_strndup.c lib_strcasestr.c lib_strpbrk.c lib_strrchr.c
CSRCS += lib_strspn.c lib_strstr.c lib_strtok.c lib_strtokr.c
CSRCS += lib_strsep.c lib_strerrorr.c lib_explicit_bzero.c lib_strsignal.c
CSRCS += lib_anbstr2cstr.c lib_ancstr2bstr.c lib_bmem2cmem.c
CSRCS += lib_bstrnlen.c lib_cmem2bmem.c lib_nbstr2cstr.c lib_ncstr2bstr.c
ifneq ($(CONFIG_LIBC_ARCH_MEMCPY),y)
ifeq ($(CONFIG_MEMCPY_VIK),y)