未验证 提交 b1bbf434 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1795 from liruncong/armlibc

armlibc下malloc/realloc/calloc函数声明同一更正
......@@ -19,19 +19,19 @@
/* avoid the heap and heap-using library functions supplied by arm */
#pragma import(__use_no_heap)
void *malloc(int n)
void *malloc(size_t n)
{
return rt_malloc(n);
}
RTM_EXPORT(malloc);
void *realloc(void *rmem, rt_size_t newsize)
void *realloc(void *rmem, size_t newsize)
{
return rt_realloc(rmem, newsize);
}
RTM_EXPORT(realloc);
void *calloc(rt_size_t nelem, rt_size_t elsize)
void *calloc(size_t nelem, size_t elsize)
{
return rt_calloc(nelem, elsize);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册