fixed compiling port/win32 for C++

This commit is contained in:
goldsimon 2014-04-30 12:26:17 +02:00
parent 0007b4e6ba
commit 993d8c8c82
3 changed files with 16 additions and 1 deletions

View File

@ -1,6 +1,10 @@
#ifndef __PCAPIF_H__
#define __PCAPIF_H__
#ifdef __cplusplus
extern "C" {
#endif
#include "lwip/err.h"
/** 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);
#endif /* !PCAPIF_RX_USE_THREAD */
#ifdef __cplusplus
}
#endif
#endif /* __PCAPIF_H__ */

View File

@ -1,6 +1,9 @@
#ifndef __PCAPIF_HELPER_H__
#define __PCAPIF_HELPER_H__
#ifdef __cplusplus
extern "C" {
#endif
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);
#ifdef __cplusplus
}
#endif
#endif /* __PCAPIF_HELPER_H__ */

View File

@ -158,7 +158,7 @@ pppLinkStatusCallback(void *ctx, int errCode, void *arg)
switch(errCode) {
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(" our_ipaddr=%s\n", ip_ntoa(&ppp_addrs->our_ipaddr));