Removed the LWIP_HAVE_SLIPIF option: either the linker removes it when not used or you'll have to not compile it

This commit is contained in:
goldsimon 2016-07-28 09:02:19 +02:00
parent 71dc8f8f53
commit b4efa33b7c
2 changed files with 1 additions and 25 deletions

View File

@ -102,7 +102,7 @@
* (the array of lwip-internal cyclic timers is still provided)
* (check NO_SYS_NO_TIMERS for compatibility to old versions)
*/
#ifndef LWIP_TIMERS || defined __DOXYGEN__
#if !defined LWIP_TIMERS || defined __DOXYGEN__
#ifdef NO_SYS_NO_TIMERS
#define LWIP_TIMERS (!NO_SYS || (NO_SYS && !NO_SYS_NO_TIMERS))
#else
@ -1524,26 +1524,6 @@
* @}
*/
/*
------------------------------------
---------- SLIPIF options ----------
------------------------------------
*/
/**
* @defgroup lwip_opts_slip SLIP interface
* @ingroup lwip_opts
* @{
*/
/**
* LWIP_HAVE_SLIPIF==1: Support slip interface and slipif.c
*/
#if !defined LWIP_HAVE_SLIPIF || defined __DOXYGEN__
#define LWIP_HAVE_SLIPIF 0
#endif
/**
* @}
*/
/*
------------------------------------
---------- Thread options ----------

View File

@ -62,8 +62,6 @@
#include "netif/slipif.h"
#include "lwip/opt.h"
#if LWIP_HAVE_SLIPIF
#include "lwip/def.h"
#include "lwip/pbuf.h"
#include "lwip/stats.h"
@ -555,5 +553,3 @@ slipif_received_bytes(struct netif *netif, u8_t *data, u8_t len)
}
}
#endif /* SLIP_RX_FROM_ISR */
#endif /* LWIP_HAVE_SLIPIF */