From edd45bd5a1477b5bc7464dcaeb7306922ea71343 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 13 Dec 2020 17:17:06 +0100 Subject: [PATCH] Disable wxUSE_WEBREQUEST when using MinGW32 We can't compile it with this compiler using WinHTTP backend. --- include/wx/msw/chkconf.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/wx/msw/chkconf.h b/include/wx/msw/chkconf.h index 1d6feabd69..87ac46f30d 100644 --- a/include/wx/msw/chkconf.h +++ b/include/wx/msw/chkconf.h @@ -235,6 +235,16 @@ # define wxUSE_ACTIVITYINDICATOR 0 #endif /* !wxUSE_ACTIVITYINDICATOR && !_MSC_VER */ +/* + Similarly, turn off wxUSE_WEBREQUEST if we can't enable it because we don't + have any of its backends to allow the library to compile with the default + options when using MinGW32 which doesn't come with winhttp.h and so for + which we have to disable wxUSE_WEBREQUEST_WINHTTP. + */ +#if wxUSE_WEBREQUEST && !wxUSE_WEBREQUEST_CURL && !wxUSE_WEBREQUEST_WINHTTP +# undef wxUSE_WEBREQUEST +# define wxUSE_WEBREQUEST 0 +#endif /* wxUSE_WEBREQUEST */ /* check settings consistency for MSW-specific ones */ #if wxUSE_CRASHREPORT && !wxUSE_ON_FATAL_EXCEPTION