|
From: | Eric ARMENGAUD |
Subject: | [lwip-users] [init.c] missing ( ? |
Date: | Wed, 12 Feb 2014 14:30:54 +0100 |
Hello, I would like be sure that a parenthesis is not missing This is the actual code: #if (LWIP_TCP && TCP_LISTEN_BACKLOG && (TCP_DEFAULT_LISTEN_BACKLOG < 0) || (TCP_DEFAULT_LISTEN_BACKLOG > 0xff)) #error "If you want to use TCP backlog, TCP_DEFAULT_LISTEN_BACKLOG must fit into an u8_t" #endif I think it should be with an additional ( before TCP_DEFAULT_LISTEN_BACKLOG and at the end: #if (LWIP_TCP && TCP_LISTEN_BACKLOG && ((TCP_DEFAULT_LISTEN_BACKLOG < 0) || (TCP_DEFAULT_LISTEN_BACKLOG > 0xff))) … Otherwise an error will occur even if TCP backlog is not used. For example with TCP_LISTEN_BACKLOG set to 0 (TCP backlog not used) and TCP_DEFAULT_LISTEN_BACKLOG > 0xff, error appears. Thanks for your confirmation. /Eric Eric ARMENGAUD – TINA: 159 3058
|
[Prev in Thread] | Current Thread | [Next in Thread] |