arch.h: Implement possibility to provide own header for size_t, default is stddef.h

This commit is contained in:
Dirk Ziegelmeier 2016-12-07 22:27:57 +01:00
parent aae0fc4908
commit 1dd563a0ae

View File

@ -47,7 +47,20 @@
#include "arch/cc.h"
/** Define this to 1 in arch/cc.h of your port if you do not want to
* include stddef.h header to get size_t. This cannot be \#defined in
* lwipopts.h since this is not an option of lwIP itself, but an option
* of the lwIP port to your system.
* Additionally, this header is meant to be \#included in lwipopts.h
* (you may need to declare function prototypes in there).
*/
#ifndef LWIP_NO_STDDEF_H
#define LWIP_NO_STDDEF_H 0
#endif
#if !LWIP_NO_STDDEF_H
#include <stddef.h> /* for size_t */
#endif
/** Define this to 1 in arch/cc.h of your port if your compiler does not provide
* the stdint.h header. This cannot be \#defined in lwipopts.h since