From 56102c1b1c482abef13cfd615c98f7a6a49d66d8 Mon Sep 17 00:00:00 2001 From: sg Date: Wed, 27 Jul 2016 21:47:36 +0200 Subject: [PATCH] fixed messed-up opt.h --- src/include/lwip/opt.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/include/lwip/opt.h b/src/include/lwip/opt.h index 98567ca4..c26ceae5 100644 --- a/src/include/lwip/opt.h +++ b/src/include/lwip/opt.h @@ -75,10 +75,15 @@ /** * LWIP_TIMERS==0: Drop support for sys_timeout and lwip-internal cyclic timers. * (the array of lwip-internal cyclic timers is still provided) + * (check NO_SYS_NO_TIMERS for compatibility to old versions) */ #ifndef LWIP_TIMERS +#ifdef NO_SYS_NO_TIMERS +#define LWIP_TIMERS (!NO_SYS || (NO_SYS && !NO_SYS_NO_TIMERS)) +#else #define LWIP_TIMERS 1 #endif +#endif /** * LWIP_TIMERS_CUSTOM==1: Provide your own timer implementation. @@ -86,14 +91,8 @@ * are still included, but the implementation is not. The following functions * will be required: sys_timeouts_init(), sys_timeout(), sys_untimeout(), * sys_timeouts_mbox_fetch() - * (check NO_SYS_NO_TIMERS for compatibility to old versions) */ #if !defined LWIP_TIMERS_CUSTOM || defined __DOXYGEN__ -#ifdef NO_SYS_NO_TIMERS -#define LWIP_TIMERS (!NO_SYS || (NO_SYS && !NO_SYS_NO_TIMERS)) -#else -#define LWIP_TIMERS 1 -#endif #define LWIP_TIMERS_CUSTOM 0 #endif /**