Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorklutzy <klutzytheklutzy@gmail.com>2015-03-16 22:46:33 +0300
committerTony Kelman <tony@kelman.net>2015-03-16 23:59:02 +0300
commite613e6ebb830137bb8d61ab350b0ba622d27c819 (patch)
tree112cb92e3fe5f05147d106506afac180ddb889f0 /deps
parent8f426d7dd26856150950d080fb821044bb2ea811 (diff)
patch so mingw-w64 can build
Diffstat (limited to 'deps')
-rw-r--r--deps/winhttp/urlmon.h8
-rw-r--r--deps/winhttp/winhttp.h8
2 files changed, 16 insertions, 0 deletions
diff --git a/deps/winhttp/urlmon.h b/deps/winhttp/urlmon.h
index 900e99690..4143d501e 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 51e82654b..dd1986a66 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