patch so mingw-w64 can build
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
diff --git a/deps/winhttp/urlmon.h b/deps/winhttp/urlmon.h
index 900e996..4143d50 100644
--- a/deps/winhttp/urlmon.h
+++ b/deps/winhttp/urlmon.h
@@ -5,6 +5,8 @@
* a Linking Exception. For full terms see the included COPYING file.
*/
+#if defined(__MINGW_VERSION) || defined(__MINGW32_VERSION)
+
#ifndef __CUSTOM_URLMON_H
#define __CUSTOM_URLMON_H
@@ -35,3 +37,9 @@ struct IInternetSecurityManager
#define URLZONE_TRUSTED 2
#endif /* __CUSTOM_URLMON_H */
+
+#else
+
+#include_next <urlmon.h>
+
+#endif
diff --git a/deps/winhttp/winhttp.h b/deps/winhttp/winhttp.h
index 51e8265..dd1986a 100644
--- a/deps/winhttp/winhttp.h
+++ b/deps/winhttp/winhttp.h
@@ -16,6 +16,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#if defined(__MINGW_VERSION) || defined(__MINGW32_VERSION)
+
#ifndef __WINE_WINHTTP_H
#define __WINE_WINHTTP_H
@@ -582,3 +584,9 @@ BOOL WINAPI WinHttpWriteData(HINTERNET,LPCVOID,DWORD,LPDWORD);
#include <poppack.h>
#endif /* __WINE_WINHTTP_H */
+
+#else
+
+#include_next <winhttp.h>
+
+#endif