From c230a7b48bfcd6d9218b1ef88ca118661e3fc06f Mon Sep 17 00:00:00 2001 From: Jakub Adam Date: Thu, 4 Apr 2019 10:11:44 +0200 Subject: [PATCH] Windows: MSVC doesn't define ssize_t --- fuzz/main.c | 5 +++++ src/psl.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/fuzz/main.c b/fuzz/main.c index 7bd11ce..6e7c1d3 100644 --- a/fuzz/main.c +++ b/fuzz/main.c @@ -41,6 +41,11 @@ #include #include +#if defined (_MSC_VER) && ! defined (ssize_t) +#include +typedef SSIZE_T ssize_t; +#endif + #include "fuzzer.h" #if defined (TEST_RUN) && defined (HAVE_FMEMOPEN) diff --git a/src/psl.c b/src/psl.c index ddfd37c..1bdba3b 100644 --- a/src/psl.c +++ b/src/psl.c @@ -56,6 +56,11 @@ # include #endif +#if defined(_MSC_VER) && ! defined(ssize_t) +# include +typedef SSIZE_T ssize_t; +#endif + #include #include #include