mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-06-02 10:41:29 +00:00
fixed compiling port/win32 for C++
This commit is contained in:
parent
0007b4e6ba
commit
993d8c8c82
|
@ -1,6 +1,10 @@
|
||||||
#ifndef __PCAPIF_H__
|
#ifndef __PCAPIF_H__
|
||||||
#define __PCAPIF_H__
|
#define __PCAPIF_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "lwip/err.h"
|
#include "lwip/err.h"
|
||||||
|
|
||||||
/** Set to 1 to let rx use an own thread (only for NO_SYS==0).
|
/** Set to 1 to let rx use an own thread (only for NO_SYS==0).
|
||||||
|
@ -21,4 +25,8 @@ void pcapif_shutdown(struct netif *netif);
|
||||||
void pcapif_poll (struct netif *netif);
|
void pcapif_poll (struct netif *netif);
|
||||||
#endif /* !PCAPIF_RX_USE_THREAD */
|
#endif /* !PCAPIF_RX_USE_THREAD */
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* __PCAPIF_H__ */
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
#ifndef __PCAPIF_HELPER_H__
|
#ifndef __PCAPIF_HELPER_H__
|
||||||
#define __PCAPIF_HELPER_H__
|
#define __PCAPIF_HELPER_H__
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
struct pcapifh_linkstate;
|
struct pcapifh_linkstate;
|
||||||
|
|
||||||
|
@ -15,4 +18,8 @@ enum pcapifh_link_event pcapifh_linkstate_get(struct pcapifh_linkstate* state);
|
||||||
void pcapifh_linkstate_close(struct pcapifh_linkstate* state);
|
void pcapifh_linkstate_close(struct pcapifh_linkstate* state);
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __PCAPIF_HELPER_H__ */
|
#endif /* __PCAPIF_HELPER_H__ */
|
|
@ -158,7 +158,7 @@ pppLinkStatusCallback(void *ctx, int errCode, void *arg)
|
||||||
|
|
||||||
switch(errCode) {
|
switch(errCode) {
|
||||||
case PPPERR_NONE: { /* No error. */
|
case PPPERR_NONE: { /* No error. */
|
||||||
struct ppp_addrs *ppp_addrs = arg;
|
struct ppp_addrs *ppp_addrs = (struct ppp_addrs *)arg;
|
||||||
|
|
||||||
printf("pppLinkStatusCallback: PPPERR_NONE\n");
|
printf("pppLinkStatusCallback: PPPERR_NONE\n");
|
||||||
printf(" our_ipaddr=%s\n", ip_ntoa(&ppp_addrs->our_ipaddr));
|
printf(" our_ipaddr=%s\n", ip_ntoa(&ppp_addrs->our_ipaddr));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user