lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] [Bulk] MSVC fix for api_msg.c


From: address@hidden
Subject: Re: [lwip-devel] [Bulk] MSVC fix for api_msg.c
Date: Mon, 07 Sep 2015 22:34:36 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]