Only check for LWIP_RAND() if IGMP is used, for now

This commit is contained in:
goldsimon 2010-01-18 08:19:48 +00:00
parent 9632632b85
commit 149f21dc58

View File

@ -172,8 +172,8 @@
#if !LWIP_ETHERNET && (LWIP_ARP || PPPOE_SUPPORT) #if !LWIP_ETHERNET && (LWIP_ARP || PPPOE_SUPPORT)
#error "LWIP_ETHERNET needs to be turned on for LWIP_ARP or PPPOE_SUPPORT" #error "LWIP_ETHERNET needs to be turned on for LWIP_ARP or PPPOE_SUPPORT"
#endif #endif
#ifndef LWIP_RAND #if LWIP_IGMP && !defined(LWIP_RAND)
#error "LWIP_RAND() needs to be defined to a random-function returning an u32_t random value" #error "When using IGMP, LWIP_RAND() needs to be defined to a random-function returning an u32_t random value"
#endif #endif