diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-09-23 12:28:03 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-09-23 12:28:03 +0200 |
commit | 833be1f00d6ba1ef714b545d9c0f173d931d5210 (patch) | |
tree | ee89255f5bf55e27e4d7c93cb567a3f933fff2f7 /modules | |
parent | 648b21b9ba3f174291813ca710206522b515140c (diff) | |
parent | 4c72d599f0a171a96e47004239f42756115b723f (diff) | |
download | redot-engine-833be1f00d6ba1ef714b545d9c0f173d931d5210.tar.gz |
Merge pull request #97139 from akien-mga/miniupnpc-2.2.8
miniupnpc: Update to 2.2.8 (new major 18)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/upnp/upnp.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/upnp/upnp.cpp b/modules/upnp/upnp.cpp index 6bdb261b50..4305bf842a 100644 --- a/modules/upnp/upnp.cpp +++ b/modules/upnp/upnp.cpp @@ -131,7 +131,11 @@ void UPNP::parse_igd(Ref<UPNPDevice> dev, UPNPDev *devlist) { GetUPNPUrls(&urls, &data, dev->get_description_url().utf8().get_data(), 0); char addr[16]; +#if MINIUPNPC_API_VERSION >= 18 + int i = UPNP_GetValidIGD(devlist, &urls, &data, (char *)&addr, 16, nullptr, 0); +#else int i = UPNP_GetValidIGD(devlist, &urls, &data, (char *)&addr, 16); +#endif if (i != 1) { FreeUPNPUrls(&urls); |