From d6b7743bdd69361da7445f2f6f4d870b7f6d95ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Thu, 28 Dec 2017 11:42:35 +0100 Subject: [PATCH] Disable SSDPDevice class instantiation if no SSDP support --- code/espurna/libs/SSDPDevice.cpp | 6 +++--- code/espurna/libs/SSDPDevice.h | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/code/espurna/libs/SSDPDevice.cpp b/code/espurna/libs/SSDPDevice.cpp index b628a4ad..22bab48d 100644 --- a/code/espurna/libs/SSDPDevice.cpp +++ b/code/espurna/libs/SSDPDevice.cpp @@ -1,6 +1,4 @@ -// -// -// +#if SSDP_SUPPORT #include "SSDPDevice.h" #include "lwip/igmp.h" @@ -374,3 +372,5 @@ void SSDPDeviceClass::setTTL(const uint8_t ttl) { } SSDPDeviceClass SSDPDevice; + +#endif diff --git a/code/espurna/libs/SSDPDevice.h b/code/espurna/libs/SSDPDevice.h index d536fd98..0a3bd796 100644 --- a/code/espurna/libs/SSDPDevice.h +++ b/code/espurna/libs/SSDPDevice.h @@ -1,4 +1,4 @@ -// SSDPDevice.h +#if SSDP_SUPPORT // SSDP_SUPPORT #ifndef _SSDPDEVICE_h #define _SSDPDEVICE_h @@ -194,3 +194,5 @@ public: extern SSDPDeviceClass SSDPDevice; #endif + +#endif // SSDP_SUPPORT