Define ssize_t on mswin build

This commit is contained in:
Nobuyoshi Nakada 2024-03-12 14:49:25 +09:00
parent 21ea290b34
commit f42164e037
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -15,6 +15,14 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#if defined(_MSC_VER) && !defined(ssize_t)
# ifdef _WIN64
# define ssize_t __int64
# else
# define ssize_t int
# endif
#endif
/** /**
* A pm_buffer_t is a simple memory buffer that stores data in a contiguous * A pm_buffer_t is a simple memory buffer that stores data in a contiguous
* block of memory. * block of memory.