Skip to content

Commit

Permalink
Revert "contrib: fixed c++ compatibility of unix port"
Browse files Browse the repository at this point in the history
  • Loading branch information
goldsimon committed Feb 19, 2024
1 parent e1b8080 commit 2be6a48
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 72 deletions.
8 changes: 0 additions & 8 deletions contrib/ports/unix/port/include/arch/cc.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@
#define LWIP_TIMEVAL_PRIVATE 0
#include <sys/time.h>

#ifdef __cplusplus
extern "C" {
#endif

#define LWIP_ERRNO_INCLUDE <errno.h>

#if defined(LWIP_UNIX_LINUX) || defined(LWIP_UNIX_HURD) || defined(LWIP_UNIX_KFREEBSD)
Expand Down Expand Up @@ -90,8 +86,4 @@ typedef struct sio_status_s sio_status_t;

typedef unsigned int sys_prot_t;

#ifdef __cplusplus
}
#endif

#endif /* LWIP_ARCH_CC_H */
8 changes: 0 additions & 8 deletions contrib/ports/unix/port/include/arch/perf.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@

#include <sys/times.h>

#ifdef __cplusplus
extern "C" {
#endif

#ifdef PERF
#define PERF_START { \
unsigned long __c1l, __c1h, __c2l, __c2h; \
Expand All @@ -64,8 +60,4 @@ void perf_print_times(struct tms *start, struct tms *end, char *key);

void perf_init(char *fname);

#ifdef __cplusplus
}
#endif

#endif /* LWIP_ARCH_PERF_H */
8 changes: 0 additions & 8 deletions contrib/ports/unix/port/include/arch/sys_arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
#ifndef LWIP_ARCH_SYS_ARCH_H
#define LWIP_ARCH_SYS_ARCH_H

#ifdef __cplusplus
extern "C" {
#endif

#define SYS_MBOX_NULL NULL
#define SYS_SEM_NULL NULL

Expand Down Expand Up @@ -91,8 +87,4 @@ void sys_unlock_tcpip_core(void);
#define UNLOCK_TCPIP_CORE() sys_unlock_tcpip_core()
#endif

#ifdef __cplusplus
}
#endif

#endif /* LWIP_ARCH_SYS_ARCH_H */
8 changes: 0 additions & 8 deletions contrib/ports/unix/port/include/netif/fifo.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@

#include "lwip/sys.h"

#ifdef __cplusplus
extern "C" {
#endif

/** How many bytes in fifo */
#define FIFOSIZE 2048

Expand Down Expand Up @@ -54,9 +50,5 @@ void fifoPut(fifo_t * fifo, int fd);
*/
void fifoInit(fifo_t * fifo);

#ifdef __cplusplus
}
#endif

#endif

8 changes: 0 additions & 8 deletions contrib/ports/unix/port/include/netif/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
#ifndef LWIP_LIST_H
#define LWIP_LIST_H

#ifdef __cplusplus
extern "C" {
#endif

struct elem;

struct list {
Expand All @@ -27,8 +23,4 @@ void list_delete(struct list *list);
int list_remove(struct list *list, void *elem);
void list_map(struct list *list, void (* func)(void *arg));

#ifdef __cplusplus
}
#endif

#endif
8 changes: 0 additions & 8 deletions contrib/ports/unix/port/include/netif/pcapif.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@

#include "lwip/netif.h"

#ifdef __cplusplus
extern "C" {
#endif

err_t pcapif_init(struct netif *netif);

#ifdef __cplusplus
}
#endif

#endif /* LWIP_PCAPIF_H */
8 changes: 0 additions & 8 deletions contrib/ports/unix/port/include/netif/sio.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
#include "netif/fifo.h"
/*#include "netif/pppif.h"*/

#ifdef __cplusplus
extern "C" {
#endif

struct sio_status_s {
int fd;
fifo_t myfifo;
Expand Down Expand Up @@ -60,9 +56,5 @@ void sio_flush( sio_status_t * siostat );
*/
void sio_change_baud( sioBaudrates baud, sio_status_t * siostat );

#ifdef __cplusplus
}
#endif

#endif

8 changes: 0 additions & 8 deletions contrib/ports/unix/port/include/netif/tapif.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,10 @@

#include "lwip/netif.h"

#ifdef __cplusplus
extern "C" {
#endif

err_t tapif_init(struct netif *netif);
void tapif_poll(struct netif *netif);
#if NO_SYS
int tapif_select(struct netif *netif);
#endif /* NO_SYS */

#ifdef __cplusplus
}
#endif

#endif /* LWIP_TAPIF_H */
8 changes: 0 additions & 8 deletions contrib/ports/unix/port/include/netif/vdeif.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,10 @@

#include "lwip/netif.h"

#ifdef __cplusplus
extern "C" {
#endif

err_t vdeif_init(struct netif *netif);
void vdeif_poll(struct netif *netif);
#if NO_SYS
int vdeif_select(struct netif *netif);
#endif /* NO_SYS */

#ifdef __cplusplus
}
#endif

#endif /* LWIP_VDEIF_H */

0 comments on commit 2be6a48

Please sign in to comment.