Added include windows.h before winhttp.h when building with mingw

This commit is contained in:
Veronica K. B. Olsen 2018-12-13 11:51:31 +01:00
parent 31bb986c7a
commit 4f326368f4
No known key found for this signature in database
GPG Key ID: 3DA1732F448CE703
1 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,10 @@
#define SECURITY_WIN32
#endif
/* MINGW needs windows.h before winhttp.h */
#ifdef __MINGW32__
#include <windows.h>
#endif
#if !defined(__CYGWIN32__) || defined(USE_WINSOCK)