mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-10 18:10:07 +01:00
Enable builds with miniupnpc API 18
Backports https://github.com/godotengine/godot/pull/97139 without bumping the embedded miniupnpc library. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
parent
825dc766f1
commit
7cbdde61a6
@ -146,7 +146,11 @@ void UPNP::parse_igd(Ref<UPNPDevice> dev, UPNPDev *devlist) {
|
||||
}
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user