Fix checking __MINGW64_VERSION_MAJOR for wxUSE_WEBREQUEST_WINHTTP

It is not yet defined for setup.h, so check it in chkconf.h.
Fixes #19105
This commit is contained in:
Maarten Bent
2021-03-18 20:50:06 +01:00
parent 5bdd5e1432
commit 3cc48e2e56
6 changed files with 10 additions and 25 deletions

View File

@@ -235,6 +235,11 @@
# define wxUSE_ACTIVITYINDICATOR 0
#endif /* !wxUSE_ACTIVITYINDICATOR && !_MSC_VER */
/* MinGW-w64 (32 and 64 bit) has winhttp.h available, legacy MinGW does not. */
#if (!defined(_MSC_VER) && !defined(__MINGW64_VERSION_MAJOR))
#undef wxUSE_WEBREQUEST_WINHTTP
#define wxUSE_WEBREQUEST_WINHTTP 0
#endif
/*
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