Merge pull request #126 from xhaakon/master

Windows: Define ssize_t for MSVC
This commit is contained in:
Tim Rühsen 2019-04-05 15:01:46 +02:00 committed by GitHub
commit 0c85c95dd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

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

View File

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