Provide ssize_t for Windows

`ssize_t` is not part of standard C but is specific to POSIX.
master
Pierre Le Marre 2023-12-14 11:06:17 +01:00 committed by Wismill
parent 7185b023c5
commit dd65950f44
1 changed files with 2 additions and 0 deletions

View File

@ -43,9 +43,11 @@
#ifdef _WIN32 #ifdef _WIN32
# include <direct.h> # include <direct.h>
# include <io.h> # include <io.h>
# include <BaseTsd.h>
# ifndef S_ISDIR # ifndef S_ISDIR
# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
# endif # endif
typedef SSIZE_T ssize_t;
#endif #endif
#include "darray.h" #include "darray.h"