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 06c84cb110)
This commit is contained in:
Dirk Ziegelmeier 2017-02-13 10:37:29 +01:00 committed by goldsimon
parent 0a3e4cd10e
commit bc78251f4a

View File

@ -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 <stdio.h>
#include <stdlib.h>
#endif