[PATCH] [W32] Use SSIZE_T for ssize_t on Windows instead of long
John Thacker
johnthacker at gmail.com
Wed May 20 00:05:12 CEST 2026
64-bit Windows uses a LLP64 data model, where long is still 32 bits and
long long and pointers are 64-bits. The SSIZE_T Windows Data Type from
basetsd.h is 32-bits on Win32 and 64-bits on Win64, and is intended for the
same purposes as the POSIX ssize_t. It is what Wireshark uses in its POSIX
compatibility header for Windows, and would prevent Wireshark from having
to change the definition when compiling for Windows. Other attempts to make
libgcrypt more compatible with MSVC used the same approach. Patch attached.
Thanks,
John Thacker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gcrypt-devel/attachments/20260519/8b65477b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Win32-Type-SSIZE_T-as-ssize_t-instead-of-long.patch
Type: text/x-patch
Size: 1243 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gcrypt-devel/attachments/20260519/8b65477b/attachment.bin>
More information about the Gcrypt-devel
mailing list