<div dir="ltr"><div dir="auto"><div>On Wed, May 20, 2026, 4:18 AM Werner Koch <<a href="mailto:wk@gnupg.org" target="_blank">wk@gnupg.org</a>> wrote:<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br><br>
I general we do not support building with MSVC but as one can see we<br>
tried to help here.  Technically your patch is an ABI change when not<br>
using gcc or clang (which for often critized reason also defines<br>
__GNUC__) but assuming that building with MSVC on WIN64 anyway gives a<br>
lot of warning, we could claim that this ABI change is a bug fix.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><div style="font-family:arial,sans-serif" class="gmail_default">Yes, Microsoft's vcpkg tool doesn't build libgcrypt with MSVC:</div><div style="font-family:arial,sans-serif" class="gmail_default"><a href="https://github.com/microsoft/vcpkg/blob/e5a4f54c0d562059e9ccc6f7e7150667da58fe41/ports/libgcrypt/vcpkg.json#L4">https://github.com/microsoft/vcpkg/blob/e5a4f54c0d562059e9ccc6f7e7150667da58fe41/ports/libgcrypt/vcpkg.json#L4</a></div><div style="font-family:arial,sans-serif" class="gmail_default"><br></div><div style="font-family:arial,sans-serif" class="gmail_default">But does have packages from a fork made to help building with MSVC:</div><div style="font-family:arial,sans-serif" class="gmail_default"><a href="https://github.com/microsoft/vcpkg/blob/e5a4f54c0d562059e9ccc6f7e7150667da58fe41/ports/shiftmedia-libgcrypt/vcpkg.json">https://github.com/microsoft/vcpkg/blob/e5a4f54c0d562059e9ccc6f7e7150667da58fe41/ports/shiftmedia-libgcrypt/vcpkg.json</a></div><br></div><div dir="auto"><div style="font-family:arial,sans-serif" class="gmail_default">That project looks like it's on hiatus, but it made the same sort of change to ssize_t.</div><div style="font-family:arial,sans-serif" class="gmail_default"><a href="https://github.com/ShiftMediaProject/libgcrypt">https://github.com/ShiftMediaProject/libgcrypt</a></div><br></div><div dir="auto">It looks like currently the only place ssize_t <span class="gmail_default" style="font-family:arial,sans-serif">is currently used is in </span>jitt<span class="gmail_default" style="font-family:arial,sans-serif">erentropy, in </span>jent_read_entropy<span class="gmail_default" style="font-family:arial,sans-serif">[_safe], so probably the largest impact of the define is that it's in the gcrypt.h header and affects other projects that include gcrypt.h and also define ssize_t for Windows for their own use, like Wireshark.</span></div><div dir="auto"><span class="gmail_default" style="font-family:arial,sans-serif"><br></span></div><div><span class="gmail_default" style="font-family:arial,sans-serif">Thanks again,</span></div><div><span class="gmail_default" style="font-family:arial,sans-serif">John</span></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>
</div>