Load winhttp functions dynamically

winhttp cannot be added to the makefiles, because some MinGW distributions
(MinGW 5.3) do not have this library.
This commit is contained in:
Maarten Bent
2021-03-19 22:28:05 +01:00
parent 3cc48e2e56
commit c4343ed2d4
2 changed files with 126 additions and 24 deletions

View File

@@ -236,7 +236,7 @@
#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))
#if (!defined(_MSC_VER) && !defined(__MINGW64_VERSION_MAJOR)) || !wxUSE_DYNLIB_CLASS
#undef wxUSE_WEBREQUEST_WINHTTP
#define wxUSE_WEBREQUEST_WINHTTP 0
#endif