diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2015-10-12 02:26:35 +0200 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2015-10-12 02:26:35 +0200 |
| commit | 4eace2b49e608be1c582b07007c1f3e8220ee8ca (patch) | |
| tree | 424d0e28443254a7b010fcd4a8a8bc04d04ba81b /Source | |
| parent | c8382cca83332bc1ef993acb225a88b8cf6a1b7d (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')
| -rw-r--r-- | Source/Core/Core/NetPlayServer.cpp | 2 |
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); |
