[PATCH] [W32] Use SSIZE_T for ssize_t on Windows instead of long
Werner Koch
wk at gnupg.org
Wed May 20 10:22:21 CEST 2026
Hi!
On Tue, 19 May 2026 18:05, John Thacker said:
> 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
Yeah. That goes back to this patch
2010-07-09 Werner Koch <wk at g10code.com>
* gcrypt.h.in [!__GNUC__ && W32]: Typedef ssize_t and pid_t to
help building with MSVC.
I general we do not support building with MSVC but as one can see we
tried to help here. Technically your patch is an ABI change when not
using gcc or clang (which for often critized reason also defines
__GNUC__) but assuming that building with MSVC on WIN64 anyway gives a
lot of warning, we could claim that this ABI change is a bug fix.
Thus I would accept it. Other opinions?
Shalom-Salam,
Werner
--
The pioneers of a warless world are the youth that
refuse military service. - A. Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 284 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gcrypt-devel/attachments/20260520/9538a28f/attachment.sig>
More information about the Gcrypt-devel
mailing list