mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-14 22:16:46 +00:00
Add C++ include guard to if.h (to fix linker errors in asio)
This commit is contained in:

committed by
David Cermak

parent
d0fbe3a58e
commit
48c5b45e99
@@ -6,6 +6,10 @@
|
|||||||
#ifndef _ESP_PLATFORM_NET_IF_H_
|
#ifndef _ESP_PLATFORM_NET_IF_H_
|
||||||
#define _ESP_PLATFORM_NET_IF_H_
|
#define _ESP_PLATFORM_NET_IF_H_
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "lwip/sockets.h"
|
#include "lwip/sockets.h"
|
||||||
#include "lwip/if_api.h"
|
#include "lwip/if_api.h"
|
||||||
|
|
||||||
@@ -29,4 +33,8 @@ unsigned int if_nametoindex(const char *ifname);
|
|||||||
|
|
||||||
char *if_indextoname(unsigned int ifindex, char *ifname);
|
char *if_indextoname(unsigned int ifindex, char *ifname);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // _ESP_PLATFORM_NET_IF_H_
|
#endif // _ESP_PLATFORM_NET_IF_H_
|
||||||
|
Reference in New Issue
Block a user