From bf4cee28fe7308a4ff833596db5d46b63c7750b3 Mon Sep 17 00:00:00 2001 From: arvinzzz Date: Fri, 28 Oct 2022 18:54:35 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20L0=E6=94=AF=E6=8C=81=E5=8E=82?= =?UTF-8?q?=E5=95=86=E8=87=AA=E5=AE=9A=E4=B9=89malloc=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 可通过在//kernel/liteos_m下make menuconfig配置 close: #I5YBPE Signed-off-by: arvinzzz Change-Id: I7533cc9148a4211f18186795935c1978f78e6548 --- porting/liteos_m_iccarm/kernel/src/malloc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/porting/liteos_m_iccarm/kernel/src/malloc.c b/porting/liteos_m_iccarm/kernel/src/malloc.c index 674cb988..c0c907c7 100644 --- a/porting/liteos_m_iccarm/kernel/src/malloc.c +++ b/porting/liteos_m_iccarm/kernel/src/malloc.c @@ -33,6 +33,7 @@ #include "los_config.h" #include "los_memory.h" +#ifdef LOSCFG_LIBC_ICCARM_MALLOC void *calloc(size_t nitems, size_t size) { size_t real_size; @@ -105,3 +106,4 @@ void *realloc(void *ptr, size_t size) return LOS_MemRealloc(OS_SYS_MEM_ADDR, ptr, size); } +#endif -- GitLab