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
# include <direct.h>
# include <io.h>
# include <BaseTsd.h>
# ifndef S_ISDIR
# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
# endif
typedef SSIZE_T ssize_t;
#endif
#include "darray.h"