Home GnuPG
Diffusion GnuPG 40ca0022a703

w32: Almost everywhere include winsock2.h before windows.h.
40ca0022a703Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

w32: Almost everywhere include winsock2.h before windows.h.

This is required by newer mingw toolchain versions which demand that
winsock2.h is included before windows.h. Now, due to the use of
socket definitions in pth.h we need to include winsock2.h also in
pth.h, now pth.h is often included after an include of windows.h and
thus the compiler spits out a warning. To avoid that we include
winsock2.h at all places the compiler complains about.

Details

Provenance
wernerAuthored on Apr 23 2013, 6:06 PM
Parents
rGa557a7461577: Allow building gpgkeys_ldap with the 32 bit mingw-w64 toolchain.
Branches
Unknown
Tags
Unknown

Event Timeline