[vlc-devel] [PATCH] libupnp: match the same Windows API used to build it
Steve Lhomme
robux4 at videolabs.io
Wed Oct 7 10:11:02 CEST 2015
--
fixes building VLC when targeting Vista+
deprecates https://patches.videolan.org/patch/10241/
---
contrib/src/upnp/missing_win32.patch | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/contrib/src/upnp/missing_win32.patch b/contrib/src/upnp/missing_win32.patch
index c5f80d0..2b0c5cc 100644
--- a/contrib/src/upnp/missing_win32.patch
+++ b/contrib/src/upnp/missing_win32.patch
@@ -1,6 +1,6 @@
--- upnp_clean/upnp/inc/upnp.h 2015-04-30 14:37:26.962425889 +0200
+++ upnp/upnp/inc/upnp.h 2015-04-30 14:41:48.099528162 +0200
-@@ -41,6 +41,10 @@
+@@ -41,6 +41,15 @@
* \file
*/
@@ -8,6 +8,11 @@
+# define WIN32
+#endif
+
++#if !defined(_WIN32_WINNT) || _WIN32_WINNT != 0x501
++#undef _WIN32_WINNT
++#define _WIN32_WINNT 0x501 /* also defined in the config file as such in config.h */
++#endif /* _WIN32_WINNT */
++
#include "ixml.h"
#include "upnpconfig.h"
#include "UpnpGlobal.h"
--
2.5.2
More information about the vlc-devel
mailing list