Skip to content

Commit

Permalink
Provide ssize_t for Windows
Browse files Browse the repository at this point in the history
`ssize_t` is not part of standard C but is specific to POSIX.
  • Loading branch information
wismill committed Dec 19, 2023
1 parent 7185b02 commit a6c56c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a6c56c0

Please sign in to comment.