[vlc-devel] [PATCH] upnp: fix compilation for Winstore on 8.1
Steve Lhomme
robux4 at videolabs.io
Tue Oct 24 15:00:03 CEST 2017
GetAdaptersAddresses is not available
---
modules/services_discovery/upnp.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index bdd3c55ee5..c724b782c4 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -1373,6 +1373,7 @@ static IP_ADAPTER_ADDRESSES* ListAdapters()
IP_ADAPTER_ADDRESSES* addresses = NULL;
HRESULT hr;
+#if !VLC_WINSTORE_APP || _WIN32_WINNT >= 0x0A00
/**
* https://msdn.microsoft.com/en-us/library/aa365915.aspx
*
@@ -1395,6 +1396,7 @@ static IP_ADAPTER_ADDRESSES* ListAdapters()
free(addresses);
return NULL;
}
+#endif
return addresses;
}
--
2.14.2
More information about the vlc-devel
mailing list