summaryrefslogtreecommitdiff
path: root/components/libc/compilers/dlib
diff options
context:
space:
mode:
authorliang yongxiang <[email protected]>2018-07-17 11:01:14 +0800
committerliang yongxiang <[email protected]>2018-07-17 11:24:47 +0800
commitb822ac8ff62f3f065c7db64454c9359c00c59255 (patch)
treeee78c1f078316fe22438fb886a02988c25e88e34 /components/libc/compilers/dlib
parentec0e5489736d4e74a6ca5687598600f2357c6d47 (diff)
[libc] fix compilation error when RT_USING_HEAP is disable
Diffstat (limited to 'components/libc/compilers/dlib')
-rw-r--r--components/libc/compilers/dlib/syscall_mem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/libc/compilers/dlib/syscall_mem.c b/components/libc/compilers/dlib/syscall_mem.c
index 05e79f50b2..b3933ba910 100644
--- a/components/libc/compilers/dlib/syscall_mem.c
+++ b/components/libc/compilers/dlib/syscall_mem.c
@@ -23,6 +23,7 @@
*/
#include <rtthread.h>
+#ifdef RT_USING_HEAP
void *malloc(rt_size_t n)
{
return rt_malloc(n);
@@ -42,3 +43,4 @@ void free(void *rmem)
{
rt_free(rmem);
}
+#endif