未验证 提交 7508c603 编写于 作者: O openharmony_ci 提交者: Gitee

!622 feature:支持厂商自定义malloc替换系统默认实现

Merge pull request !622 from Zhaotianyu/20221028iar_malloc
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "los_config.h" #include "los_config.h"
#include "los_memory.h" #include "los_memory.h"
#ifdef LOSCFG_LIBC_ICCARM_MALLOC
void *calloc(size_t nitems, size_t size) void *calloc(size_t nitems, size_t size)
{ {
size_t real_size; size_t real_size;
...@@ -105,3 +106,4 @@ void *realloc(void *ptr, size_t size) ...@@ -105,3 +106,4 @@ void *realloc(void *ptr, size_t size)
return LOS_MemRealloc(OS_SYS_MEM_ADDR, ptr, size); return LOS_MemRealloc(OS_SYS_MEM_ADDR, ptr, size);
} }
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册