diff options
| author | geniusgogo <[email protected]> | 2013-11-17 00:41:45 +0800 |
|---|---|---|
| committer | geniusgogo <[email protected]> | 2013-11-30 14:59:57 +0800 |
| commit | 7d88b753d6052e05efa5b4da9f5cee32f542fc5b (patch) | |
| tree | d994891697ef1eb428711dd56b12c6ef1022ffc2 /components/external/SQLite-3.8.1/src/mem1.c | |
| parent | 2315160531cd2781218384d81f6d0b8ce41c27ab (diff) | |
complete SQLite-3.8.1 porting, and auto generate porting code
Diffstat (limited to 'components/external/SQLite-3.8.1/src/mem1.c')
| -rw-r--r-- | components/external/SQLite-3.8.1/src/mem1.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/external/SQLite-3.8.1/src/mem1.c b/components/external/SQLite-3.8.1/src/mem1.c index 17bf6ef0df..c0b8d0e6ff 100644 --- a/components/external/SQLite-3.8.1/src/mem1.c +++ b/components/external/SQLite-3.8.1/src/mem1.c @@ -76,13 +76,14 @@ static malloc_zone_t* _sqliteZone_; (_sqliteZone_ ? _sqliteZone_->size(_sqliteZone_,x) : malloc_size(x)) #elif defined(SQLITE_OS_RTT) +#include <rtthread.h> /* ** Use standard C library malloc and free on non-Apple systems. ** Also used by rt-thread systems if SQLITE_WITHOUT_ZONEMALLOC is defined. */ -#define SQLITE_MALLOC(x) rt_malloc(x) +#define SQLITE_MALLOC(x) rt_malloc((rt_size_t)x) #define SQLITE_FREE(x) rt_free(x) -#define SQLITE_REALLOC(x,y) rt_realloc((x),(y)) +#define SQLITE_REALLOC(x,y) rt_realloc((x),(rt_size_t)(y)) #if (!defined(SQLITE_WITHOUT_MSIZE)) \ && (defined(HAVE_MALLOC_H) && defined(HAVE_MALLOC_USABLE_SIZE)) |
