mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user