Clarify/add LWIP_PROVIDE_ERRNO comments

This commit is contained in:
goldsimon 2017-01-31 12:38:53 +01:00
parent 2685d742e8
commit 48d2243845
2 changed files with 6 additions and 3 deletions

View File

@ -282,8 +282,9 @@ cc.h - Architecture environment, some compiler specific, some
definition of it, or include a file which defines it. definition of it, or include a file which defines it.
This file must either include a system-local <errno.h> which defines This file must either include a system-local <errno.h> which defines
the standard *nix error codes, or it should #define LWIP_PROVIDE_ERRNO the standard *nix error codes (or define LWIP_ERRNO_INCLUDE to that file name),
to make lwip/arch.h define the codes which are used throughout. or it should #define LWIP_PROVIDE_ERRNO to make lwip/arch.h define the codes
which are used throughout.
perf.h - Architecture specific performance measurement. perf.h - Architecture specific performance measurement.

View File

@ -1751,7 +1751,9 @@
#define LWIP_SOCKET_SET_ERRNO 1 #define LWIP_SOCKET_SET_ERRNO 1
#endif #endif
/** LWIP_PROVIDE_ERRNO==1: Let lwIP provide ERRNO values. /** LWIP_PROVIDE_ERRNO==1: Let lwIP provide ERRNO values and the 'errno' variable.
* If this is disabled, cc.h must either define 'errno', include <errno.h> or
* define LWIP_ERRNO_INCLUDE to <errno.h> or equivalent.
*/ */
#if !defined LWIP_PROVIDE_ERRNO || defined __DOXYGEN__ #if !defined LWIP_PROVIDE_ERRNO || defined __DOXYGEN__
#define LWIP_PROVIDE_ERRNO 0 #define LWIP_PROVIDE_ERRNO 0