Try to remove #include <stdlib.h> from many files. Does not seem necessary any more and might cause problems when porting lwIP.

This commit is contained in:
Dirk Ziegelmeier 2016-12-08 11:04:35 +01:00
parent 9c3bbcf4e6
commit 89cb7b7aa1
5 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,6 @@
#include "lwip/dns.h"
#include <string.h>
#include <stdlib.h>
/** helper struct for gethostbyname_r to access the char* buffer */
struct gethostbyname_r_helper {

View File

@ -99,7 +99,6 @@
#include "lwip/tcp.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#if LWIP_TCP

View File

@ -65,7 +65,6 @@
#include "lwip/prot/dns.h"
#include <string.h>
#include <stdlib.h>
#if LWIP_MDNS_RESPONDER

View File

@ -68,7 +68,6 @@
#include "lwip/etharp.h"
#include "lwip/prot/autoip.h"
#include <stdlib.h>
#include <string.h>
/** Pseudo random macro based on netif informations.

View File

@ -61,9 +61,13 @@
#include "lwip/err.h"
#include <string.h>
#include <stdlib.h>
#if MEM_LIBC_MALLOC
#include <stdlib.h> /* for malloc()/free() */
#endif
#if MEM_LIBC_MALLOC || MEM_USE_POOLS
/** mem_init is not used when using pools instead of a heap or using
* C library malloc().
*/