mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-25 07:33:11 +00:00
cleanup: move stdlib.h include to mem.c, where it belongs
This commit is contained in:
parent
e4c01a064e
commit
219438fb24
@ -54,13 +54,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "lwip/opt.h"
|
#include "lwip/opt.h"
|
||||||
#include "lwip/def.h"
|
|
||||||
#include "lwip/mem.h"
|
#include "lwip/mem.h"
|
||||||
|
#include "lwip/def.h"
|
||||||
#include "lwip/sys.h"
|
#include "lwip/sys.h"
|
||||||
#include "lwip/stats.h"
|
#include "lwip/stats.h"
|
||||||
#include "lwip/err.h"
|
#include "lwip/err.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
#if MEM_LIBC_MALLOC || MEM_USE_POOLS
|
#if MEM_LIBC_MALLOC || MEM_USE_POOLS
|
||||||
/** mem_init is not used when using pools instead of a heap or using
|
/** mem_init is not used when using pools instead of a heap or using
|
||||||
|
@ -45,7 +45,6 @@ extern "C" {
|
|||||||
|
|
||||||
#if MEM_LIBC_MALLOC
|
#if MEM_LIBC_MALLOC
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stddef.h> /* for size_t */
|
#include <stddef.h> /* for size_t */
|
||||||
typedef size_t mem_size_t;
|
typedef size_t mem_size_t;
|
||||||
#define MEM_SIZE_F SZT_F
|
#define MEM_SIZE_F SZT_F
|
||||||
|
Loading…
Reference in New Issue
Block a user