Use SSIZE_T from BaseTsd.h to compile MSVC 32-bit

This commit is contained in:
Jonah Beckford 2023-06-07 21:24:33 -07:00
parent 01657913b2
commit 25784e3ccf

View file

@ -27,7 +27,8 @@
* Windows seems to only have SSIZE_T in BaseTsd.h
*/
#ifdef _MSC_VER
typedef intmax_t ssize_t;
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#else
#include <stddef.h>
#endif