From 6fe171a2cd2e0a8e98ee7423ab08f2795a393a5e Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" Date: Thu, 13 Dec 2018 23:24:05 +0100 Subject: [PATCH] Moving winhttp.h instead of windows.h for MINGW build --- lib/boinc_win.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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