summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-12-03 16:22:08 +0100
committerMax Kellermann <max@musicpd.org>2017-12-03 16:22:08 +0100
commitfbc4bb29dcc471a08e47f10ffaa24ad8da6d40a2 (patch)
treebfbf5c75d1511145d6570697959ad52787e952bd /src/lib
parent7ba7ce3af7f013de10f458540e2cd9e7ff3c212f (diff)
parent12085038881a4aba94c74b7104c5090bc777001e (diff)
Merge branch 'v0.20.x'
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/upnp/Compat.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/upnp/Compat.hxx b/src/lib/upnp/Compat.hxx
index 2e2d2f1de..c9f1cc47f 100644
--- a/src/lib/upnp/Compat.hxx
+++ b/src/lib/upnp/Compat.hxx
@@ -23,12 +23,15 @@
#include <upnp/upnp.h>
#if UPNP_VERSION < 10800
-#include "Compiler.h"
-
/* emulate the libupnp 1.8 API with older versions */
using UpnpDiscovery = Upnp_Discovery;
+#endif
+
+#if UPNP_VERSION < 10624
+#include "Compiler.h"
+
gcc_pure
static inline int
UpnpDiscovery_get_Expires(const UpnpDiscovery *disco) noexcept