Merge pull request #126 from xhaakon/master
Windows: Define ssize_t for MSVC
This commit is contained in:
commit
0c85c95dd1
|
@ -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)
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue