mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-13 15:38:09 +00:00
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
This commit is contained in:
parent
de05424ff6
commit
06c84cb110
@ -66,7 +66,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** Define random number generator function of your system */
|
/** Define random number generator function of your system */
|
||||||
#ifndef LWIP_RAND
|
#ifdef __DOXYGEN__
|
||||||
#define LWIP_RAND() ((u32_t)rand())
|
#define LWIP_RAND() ((u32_t)rand())
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -76,7 +76,7 @@
|
|||||||
* systems, this should be defined to something less resource-consuming.
|
* systems, this should be defined to something less resource-consuming.
|
||||||
*/
|
*/
|
||||||
#ifndef LWIP_PLATFORM_DIAG
|
#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 <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user