diff --git a/lib/boinc_win.h b/lib/boinc_win.h index 41c375d0a0..bc31620002 100644 --- a/lib/boinc_win.h +++ b/lib/boinc_win.h @@ -146,11 +146,6 @@ #define SECURITY_WIN32 #endif -/* MINGW needs windows.h before winhttp.h */ -#ifdef __MINGW32__ -#include -#endif - #if !defined(__CYGWIN32__) || defined(USE_WINSOCK) /* If we're not running under CYGWIN use windows networking */ @@ -162,9 +157,6 @@ #elif defined(HAVE_WINSOCK_H) #include #endif -#ifdef HAVE_WINHTTP_H -#include -#endif #ifndef HAVE_SOCKLEN_T typedef size_t socklen_t; @@ -195,6 +187,9 @@ typedef size_t socklen_t; #include #include #include +#ifdef HAVE_WINHTTP_H +#include +#endif #include #include #include