mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
lwip: Changed to C linkage for fixing bug when using mixed C/C++ code
Merges https://github.com/espressif/esp-idf/pull/5900
This commit is contained in:
committed by
David Cermak
parent
4904606461
commit
e9b6d40b97
@ -32,9 +32,17 @@
|
|||||||
|
|
||||||
#include "lwip/netdb.h"
|
#include "lwip/netdb.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef ESP_PLATFORM
|
#ifdef ESP_PLATFORM
|
||||||
int getnameinfo(const struct sockaddr *addr, socklen_t addrlen,
|
int getnameinfo(const struct sockaddr *addr, socklen_t addrlen,
|
||||||
char *host, socklen_t hostlen,
|
char *host, socklen_t hostlen,
|
||||||
char *serv, socklen_t servlen, int flags);
|
char *serv, socklen_t servlen, int flags);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
Reference in New Issue
Block a user