mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 15:43:32 +08:00
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
This commit is contained in:
parent
65b9bf3663
commit
bad2e992ef
3
components/external/jpeg/jerror.c
vendored
3
components/external/jpeg/jerror.c
vendored
@ -32,6 +32,9 @@
|
||||
#define EXIT_FAILURE 1
|
||||
#endif
|
||||
|
||||
/* sprintf wrapper for RT-Thread */
|
||||
#include <rtthread.h>
|
||||
#define sprintf rt_sprintf
|
||||
|
||||
/*
|
||||
* Create the message string table.
|
||||
|
4
components/external/jpeg/jmemnobs.c
vendored
4
components/external/jpeg/jmemnobs.c
vendored
@ -25,6 +25,10 @@ extern void * malloc JPP((size_t size));
|
||||
extern void free JPP((void *ptr));
|
||||
#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
|
||||
|
Loading…
x
Reference in New Issue
Block a user