mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
malloc: adjust memcpy() and memset() definitions.
Compiling the sandbox fails on armv7 due to conflicting definitions of memcpy() and memset() in include/malloc.h and include/linux/string.h. Use linux/string.h here. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
db5f1a50ef
commit
c6bf4f3898
1 changed files with 3 additions and 0 deletions
|
@ -361,8 +361,11 @@ extern "C" {
|
|||
#if (__STD_C || defined(HAVE_MEMCPY))
|
||||
|
||||
#if __STD_C
|
||||
/* U-Boot defines memset() and memcpy in /include/linux/string.h
|
||||
void* memset(void*, int, size_t);
|
||||
void* memcpy(void*, const void*, size_t);
|
||||
*/
|
||||
#include <linux/string.h>
|
||||
#else
|
||||
#ifdef WIN32
|
||||
/* On Win32 platforms, 'memset()' and 'memcpy()' are already declared in */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue