From d2235274d5f4c721915c2fdacdeef59c25d7fe34 Mon Sep 17 00:00:00 2001 From: Sarena Meas <6563840+sarenameas@users.noreply.github.com> Date: Tue, 12 Feb 2019 15:12:13 -0800 Subject: [PATCH] Add support for building C library only with import to Visual Studio 2017. --- lib/includes/nghttp2/nghttp2.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/includes/nghttp2/nghttp2.h b/lib/includes/nghttp2/nghttp2.h index 925a4cbc..8f781529 100644 --- a/lib/includes/nghttp2/nghttp2.h +++ b/lib/includes/nghttp2/nghttp2.h @@ -52,6 +52,13 @@ extern "C" { #include #include +#if defined(_MSC_VER) +/* ssize_t is part of the Posix standard but not the C standard. + It is not supported in MSVC. */ +# include +# define ssize_t SSIZE_T +#endif + #include #ifdef NGHTTP2_STATICLIB