Index: dns.h =================================================================== RCS file: /sources/lwip/lwip/src/include/lwip/dns.h,v retrieving revision 1.16 diff -u -r1.16 dns.h --- dns.h 16 May 2010 13:36:51 -0000 1.16 +++ dns.h 20 Jan 2011 23:28:52 -0000 @@ -38,6 +38,10 @@ #if LWIP_DNS /* don't build if not configured for use in lwipopts.h */ +#ifdef __cplusplus +extern "C" { +#endif + /** DNS timer period */ #define DNS_TMR_INTERVAL 1000 @@ -111,6 +115,10 @@ err_t dns_local_addhost(const char *hostname, const ip_addr_t *addr); #endif /* DNS_LOCAL_HOSTLIST && DNS_LOCAL_HOSTLIST_IS_DYNAMIC */ +#ifdef __cplusplus +} +#endif + #endif /* LWIP_DNS */ #endif /* __LWIP_DNS_H__ */ Index: netdb.h =================================================================== RCS file: /sources/lwip/lwip/src/include/lwip/netdb.h,v retrieving revision 1.5 diff -u -r1.5 netdb.h --- netdb.h 4 Feb 2010 17:21:33 -0000 1.5 +++ netdb.h 22 Jan 2011 14:04:46 -0000 @@ -33,6 +33,10 @@ #if LWIP_DNS && LWIP_SOCKET +#ifdef __cplusplus +extern "C" { +#endif + #include /* for size_t */ #include "lwip/inet.h" @@ -111,6 +115,10 @@ lwip_getaddrinfo(nodname, servname, hints, res) #endif /* LWIP_COMPAT_SOCKETS */ +#ifdef __cplusplus +} +#endif + #endif /* LWIP_DNS && LWIP_SOCKET */ #endif /* __LWIP_NETDB_H__ */