Fix (unreported) wrong definition of `ssize_t` for windows.

Since at least MSVC2010 there is a `SSIZE_T` available for windows, use
it to typedef `ssize_t` on this platform.
This commit is contained in:
Bastien Montagne 2020-09-20 19:32:46 +02:00
parent 5ea1049e75
commit cdad684ada
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ typedef unsigned int mode_t;
/* python uses HAVE_SSIZE_T */
# ifndef HAVE_SSIZE_T
# define HAVE_SSIZE_T 1
typedef long ssize_t;
typedef SSIZE_T ssize_t;
# endif
#endif