Windows: MSVC doesn't define ssize_t

This commit is contained in:
Jakub Adam 2019-04-04 10:11:44 +02:00
parent 19359c6733
commit c230a7b48b
2 changed files with 10 additions and 0 deletions

View File

@ -41,6 +41,11 @@
#include <errno.h>
#include <sys/stat.h>
#if defined (_MSC_VER) && ! defined (ssize_t)
#include <basetsd.h>
typedef SSIZE_T ssize_t;
#endif
#include "fuzzer.h"
#if defined (TEST_RUN) && defined (HAVE_FMEMOPEN)

View File

@ -56,6 +56,11 @@
# include <unistd.h>
#endif
#if defined(_MSC_VER) && ! defined(ssize_t)
# include <basetsd.h>
typedef SSIZE_T ssize_t;
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>