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:
@@ -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
|
||||
|
Reference in New Issue
Block a user