Commit fcafb389 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

contrib: upnp: Work around missing WIN32 macro

When building in non-gnu -std, WIN32 doesn't get defined.
parent 628764e9
--- 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 @@
* \file
*/
+#ifdef _WIN32
+# define WIN32
+#endif
+
#include "ixml.h"
#include "upnpconfig.h"
#include "UpnpGlobal.h"
......@@ -25,6 +25,7 @@ ifdef HAVE_WIN32
endif
$(APPLY) $(SRC)/upnp/libupnp-ipv6.patch
$(APPLY) $(SRC)/upnp/miniserver.patch
$(APPLY) $(SRC)/upnp/missing_win32.patch
$(UPDATE_AUTOCONFIG) && cd $(UNPACK_DIR) && mv config.guess config.sub build-aux/
$(MOVE)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment