From ba416853535ec72dc4ca0b98f7494c4aa69c7431 Mon Sep 17 00:00:00 2001 From: sg Date: Thu, 24 Sep 2015 22:04:48 +0200 Subject: [PATCH] PPP: include "ppp_settings.h" if PPP_INCLUDE_SETTINGS_HEADER is defined to be able to silence some warnings in PPP code only (at least msvc needs this since PPP produces more warnings than the rest) --- src/include/netif/ppp/ppp_impl.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/include/netif/ppp/ppp_impl.h b/src/include/netif/ppp/ppp_impl.h index 82e6299c..324f4b05 100644 --- a/src/include/netif/ppp/ppp_impl.h +++ b/src/include/netif/ppp/ppp_impl.h @@ -30,12 +30,16 @@ * 97-11-05 Guy Lancaster , Global Election Systems Inc. * Original derived from BSD codes. *****************************************************************************/ +#ifndef LWIP_HDR_PPP_IMPL_H +#define LWIP_HDR_PPP_IMPL_H #include "lwip/opt.h" + #if PPP_SUPPORT /* don't build if not configured for use in lwipopts.h */ -#ifndef PPP_IMP_H_ -#define PPP_IMP_H_ +#ifdef PPP_INCLUDE_SETTINGS_HEADER +#include "ppp_settings.h" +#endif #include /* formats */ #include @@ -624,5 +628,5 @@ void ppp_dump_packet(const char *tag, unsigned char *p, int len); #endif /* PRINTPKT_SUPPORT */ -#endif /* PPP_IMP_H_ */ #endif /* PPP_SUPPORT */ +#endif /* LWIP_HDR_PPP_IMPL_H */