提交 bad2e992 编写于 作者: B bernard.xiong@gmail.com

remove sprint, malloc, free function link when using Keil MDK compiler.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1549 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 65b9bf36
...@@ -32,6 +32,9 @@ ...@@ -32,6 +32,9 @@
#define EXIT_FAILURE 1 #define EXIT_FAILURE 1
#endif #endif
/* sprintf wrapper for RT-Thread */
#include <rtthread.h>
#define sprintf rt_sprintf
/* /*
* Create the message string table. * Create the message string table.
......
...@@ -25,6 +25,10 @@ extern void * malloc JPP((size_t size)); ...@@ -25,6 +25,10 @@ extern void * malloc JPP((size_t size));
extern void free JPP((void *ptr)); extern void free JPP((void *ptr));
#endif #endif
/* memory wrapper for RT-Thread */
#include <rtthread.h>
#define malloc rt_malloc
#define free rt_free
/* /*
* Memory allocation and freeing are controlled by the regular library * Memory allocation and freeing are controlled by the regular library
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册