From 25784e3ccf03e15d922a5ff492bf42b2026ce4ae Mon Sep 17 00:00:00 2001 From: Jonah Beckford <9566106-jonahbeckford@users.noreply.gitlab.com> Date: Wed, 7 Jun 2023 21:24:33 -0700 Subject: [PATCH] Use SSIZE_T from BaseTsd.h to compile MSVC 32-bit --- lib/capnp_c.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/capnp_c.h b/lib/capnp_c.h index db8f92e..2b4b22a 100644 --- a/lib/capnp_c.h +++ b/lib/capnp_c.h @@ -27,7 +27,8 @@ * Windows seems to only have SSIZE_T in BaseTsd.h */ #ifdef _MSC_VER -typedef intmax_t ssize_t; +#include +typedef SSIZE_T ssize_t; #else #include #endif