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: Gisle Vanem
Subject: Re: [lwip-devel] [Bulk] MSVC fix for api_msg.c
Date: Mon, 7 Sep 2015 21:30:09 +0200
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0 SeaMonkey/2.35

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.

--
--gv

Attachment: diff-1.txt
Description: Text document


reply via email to

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