From 514914179064e85028e4b65b8179c7351c484499 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 23 Mar 2017 08:34:36 +0100 Subject: [PATCH] altcp_tls: remove declarations #if !LWIP_ALTCP_TLS --- src/include/lwip/apps/altcp_tls.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/include/lwip/apps/altcp_tls.h b/src/include/lwip/apps/altcp_tls.h index 4323852b..b5c532c4 100644 --- a/src/include/lwip/apps/altcp_tls.h +++ b/src/include/lwip/apps/altcp_tls.h @@ -44,6 +44,9 @@ #if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */ #include "altcp_tls_opts.h" + +#if LWIP_ALTCP_TLS + #include "lwip/altcp.h" #ifdef __cplusplus @@ -62,6 +65,6 @@ struct altcp_pcb *altcp_tls_new(struct altcp_tls_config* config, struct altcp_pc } #endif +#endif /* LWIP_ALTCP_TLS */ #endif /* LWIP_ALTCP */ - #endif /* LWIP_HDR_ALTCP_TLS_H */