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 23:16:07 +0200
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0 SeaMonkey/2.35

address@hidden wrote:

Fxied in another way, but you're right that all these PP if/else blocks are 
ugly...

Got that, but you must patch lwip/api.h too since now:

  In file included from api_lib.c:46:0:
  ../../src/include/lwip/api.h:301:65: error: macro parameters must be 
comma-separated
   #define netconn_gethostbyname_addrtype(name, addr, dns_addrtype 
netconn_gethostbyname(name, addr)
                                                                   ^

Hence:

--- a/src/include/lwip/api.h   2015-09-07 20:46:41
+++ b/src/include/lwip/api.h      2015-09-07 23:13:00
@@ -297,7 +297,7 @@
 #define netconn_gethostbyname(name, addr) netconn_gethostbyname_addrtype(name, 
addr, NETCONN_DNS_DEFAULT)
 #else /* LWIP_IPV4 && LWIP_IPV6 */
 err_t   netconn_gethostbyname(const char *name, ip_addr_t *addr);
-#define netconn_gethostbyname_addrtype(name, addr, dns_addrtype 
netconn_gethostbyname(name, addr)
+#define netconn_gethostbyname_addrtype(name, addr, dns_addrtype) 
netconn_gethostbyname(name, addr)
 #endif /* LWIP_IPV4 && LWIP_IPV6 */
 #endif /* LWIP_DNS */

(I have LWIP_IPV4==1 + LWIP_IPV6==0).

--
--gv



reply via email to

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