mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-07 03:40:11 +00:00
Fixed bug #27105: "realloc() cannot replace mem_realloc()" by making mem_realloc static doing nothing when MEM_LIBC_MALLOC==1
This commit is contained in:
parent
730a938912
commit
7feb116bae
@ -116,6 +116,9 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2009-07-28 Simon Goldschmidt
|
||||||
|
* mem.h: Fixed bug #27105: "realloc() cannot replace mem_realloc()"s
|
||||||
|
|
||||||
2009-07-27 Kieran Mansley
|
2009-07-27 Kieran Mansley
|
||||||
* api.h api_msg.h netdb.h sockets.h: add missing #include directives
|
* api.h api_msg.h netdb.h sockets.h: add missing #include directives
|
||||||
|
|
||||||
|
@ -59,7 +59,11 @@ typedef size_t mem_size_t;
|
|||||||
#define mem_calloc calloc
|
#define mem_calloc calloc
|
||||||
#endif
|
#endif
|
||||||
#ifndef mem_realloc
|
#ifndef mem_realloc
|
||||||
#define mem_realloc realloc
|
static void *mem_realloc(void *mem, mem_size_t size)
|
||||||
|
{
|
||||||
|
LWIP_UNUSED_ARG(size);
|
||||||
|
return mem;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#else /* MEM_LIBC_MALLOC */
|
#else /* MEM_LIBC_MALLOC */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user