Fxied in another way, but you're right
that all these PP if/else blocks are ugly...
Thanks for reporting.
Simon
Gisle Vanem wrote:
Gisle Vanem wrote:
breaks the inferior C-preprocessor of MSVC in src/api/api_msg.c:
API_EXPR_DEREF(msg->err) = dns_gethostbyname_addrtype(msg->name, API_EXPR_REF(msg->addr),
lwip_netconn_do_dns_found, msg
#if LWIP_IPV4 && LWIP_IPV6
, msg->dns_addrtype
#endif /* LWIP_IPV4 && LWIP_IPV6 */
);
The "meat" of the dns_gethostbyname_addrtype() macro MUST be written w/o
any '#if X'. Attached a diff that works for me.
A fix for gcc (TDM-gcc) too; the dns_gethostbyname_addrtype() must take
5 args. Take 2 off the diff-1.txt attached.
_______________________________________________
lwip-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-devel