From bc78251f4ac91882d9ae9a19c99111c9d9e67f6d Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Mon, 13 Feb 2017 10:37:29 +0100 Subject: [PATCH] My documentation changes forced the usage of rand() function, which is not desired By default, the code that does NOT need LWIP_RAND() is active now (cherry picked from commit 06c84cb1103e5c6a6d1630b1d26025a817013a10) --- src/include/lwip/arch.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/lwip/arch.h b/src/include/lwip/arch.h index b59f521b..884dccbc 100644 --- a/src/include/lwip/arch.h +++ b/src/include/lwip/arch.h @@ -66,7 +66,7 @@ #endif /** Define random number generator function of your system */ -#ifndef LWIP_RAND +#ifdef __DOXYGEN__ #define LWIP_RAND() ((u32_t)rand()) #endif @@ -76,7 +76,7 @@ * systems, this should be defined to something less resource-consuming. */ #ifndef LWIP_PLATFORM_DIAG -#define LWIP_PLATFORM_DIAG(x) do {printf x;} while(0) +#define LWIP_PLATFORM_DIAG(x) do {printf x;} while(0) #include #include #endif