From 2ad03b0ebde33fd0656c720bec42731e0de99816 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Thu, 2 Feb 2017 09:18:30 +0100 Subject: [PATCH] Add documentation for LWIP_PROVIDE_ERRNO in arch.h --- src/include/lwip/arch.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/include/lwip/arch.h b/src/include/lwip/arch.h index b59f521b..fa627459 100644 --- a/src/include/lwip/arch.h +++ b/src/include/lwip/arch.h @@ -278,7 +278,7 @@ extern "C" { #define PACK_STRUCT_FLD_S(x) PACK_STRUCT_FIELD(x) #endif /* PACK_STRUCT_FLD_S */ -/** Packed structs support using \#include files before and after struct to be packed.\n +/** PACK_STRUCT_USE_INCLUDES==1: Packed structs support using \#include files before and after struct to be packed.\n * The file included BEFORE the struct is "arch/bpstruct.h".\n * The file included AFTER the struct is "arch/epstruct.h".\n * This can be used to implement struct packing on MS Visual C compilers, see @@ -295,6 +295,14 @@ extern "C" { #define LWIP_UNUSED_ARG(x) (void)x #endif /* LWIP_UNUSED_ARG */ +/** LWIP_PROVIDE_ERRNO==1: Let lwIP provide ERRNO values and the 'errno' variable. + * If this is disabled, cc.h must either define 'errno', include or + * define LWIP_ERRNO_INCLUDE to or equivalent. + */ +#if defined __DOXYGEN__ +#define LWIP_PROVIDE_ERRNO +#endif + /** * @} */