]> git.ipfire.org Git - thirdparty/squid.git/commit
MinGW: use nameless unions in ext_ad_group_acl (#2004)
authorFrancesco Chemolli <5175948+kinkie@users.noreply.github.com>
Tue, 4 Mar 2025 15:15:06 +0000 (15:15 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 4 Mar 2025 15:16:52 +0000 (15:16 +0000)
commit17645a33f562d5f014edf540d403d0ea52962f99
tree83f570fcfbe21182f3021b6a2bb55bc43eb9d82a
parent74e0d1cb1d429ed9a90b25e13768f396fd7025f3
MinGW: use nameless unions in ext_ad_group_acl (#2004)

ext_ad_group_acl was written in 2008 in C, and
it used the C variant of the Win32 API.
It was then ported to C++, but the API callers were
not updated to the C++ version of the API.
With more modern compilers, and
Squid enforcing more strict types and error handling,
it is no longer compiling.

This is part 1 of 2 of the fixes to make the helper build
again, the scope is to update Win32 API callers so they
use the C++ version of the API

Examples of fixed errors:

    error: 'IADs' {aka 'struct IADs'} has no member named 'lpVtbl'
    error: 'VARIANT' {aka 'struct tagVARIANT'} has no member named 'n1'
src/acl/external/AD_group/ext_ad_group_acl.cc