[gnutls-devel] GnuTLS | fix mingw64 detection (!1476)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Thu Sep 23 09:11:35 CEST 2021
Steve Lhomme created a merge request: https://gitlab.com/gnutls/gnutls/-/merge_requests/1476
Project:Branches: robUx4/gnutls:mingw64-detection to gnutls/gnutls:master
Author: Steve Lhomme
When building for mingw64 i686, `CertEnumCRLsInStore` is used via LoadLibrary, even though it's available in the toolchain.
The `#ifdef` in the original code was intended to only do it for old versions of `mingw32` and never for `mingw64`. But the check for `__MINGW64__` is incorrect as it only matches 64-bits versions of `mingw64`.
This patch uses `__MINGW64_VERSION_MAJOR` instead of `__MINGW64__`.
This was not a problem so far as `LoadLibrary` is available on regular Windows builds. But it's not available in UWP builds, system calls have to be linked directly, not called indirectly via `LoadLibrary`.
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1476
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gnutls-devel