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 [cid:[email protected]] 635 route des Lucioles 06560 Valbonne Sophia-Antipolis - France Office: +33 4 92 94 30 58 Fax: +33 4 92 96 12 80 [email protected]<mailto:[email protected]> ________________________________
<<inline: image001.jpg>>
_______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
