summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2015-10-12 02:26:35 +0200
committerTillmann Karras <tilkax@gmail.com>2015-10-12 02:26:35 +0200
commit4eace2b49e608be1c582b07007c1f3e8220ee8ca (patch)
tree424d0e28443254a7b010fcd4a8a8bc04d04ba81b /Source/Core
parentc8382cca83332bc1ef993acb225a88b8cf6a1b7d (diff)
CMake: simplify FindMiniupnpc.cmake
miniupnpc.h provides MINIUPNPC_API_VERSION since 1.7 and we require 1.7 or later, so there is no reason to have version detection code for older versions.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/NetPlayServer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Core/NetPlayServer.cpp b/Source/Core/Core/NetPlayServer.cpp
index 8bde757c2e..0494825eb6 100644
--- a/Source/Core/Core/NetPlayServer.cpp
+++ b/Source/Core/Core/NetPlayServer.cpp
@@ -904,7 +904,7 @@ bool NetPlayServer::initUPnP()
memset(&m_upnp_data, 0, sizeof(IGDdatas));
// Find all UPnP devices
-#ifdef UPNPDISCOVER_HAS_TTL
+#if MINIUPNPC_API_VERSION >= 14
UPNPDev *devlist = upnpDiscover(2000, nullptr, nullptr, 0, 0, 2, &upnperror);
#else
UPNPDev *devlist = upnpDiscover(2000, nullptr, nullptr, 0, 0, &upnperror);