Skip to content

Commit

Permalink
patch so mingw-w64 can build
Browse files Browse the repository at this point in the history
  • Loading branch information
klutzy authored and tkelman committed Mar 16, 2015
1 parent 8f426d7 commit e613e6e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deps/winhttp/urlmon.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -35,3 +37,9 @@ struct IInternetSecurityManager
#define URLZONE_TRUSTED 2

#endif /* __CUSTOM_URLMON_H */

#else

#include_next <urlmon.h>

#endif
8 changes: 8 additions & 0 deletions deps/winhttp/winhttp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -582,3 +584,9 @@ BOOL WINAPI WinHttpWriteData(HINTERNET,LPCVOID,DWORD,LPDWORD);
#include <poppack.h>

#endif /* __WINE_WINHTTP_H */

#else

#include_next <winhttp.h>

#endif

0 comments on commit e613e6e

Please sign in to comment.