Add support for building C library only with import to Visual Studio 2017.

This commit is contained in:
Sarena Meas 2019-02-12 15:12:13 -08:00
parent e7e8ee5fe6
commit d2235274d5
1 changed files with 7 additions and 0 deletions

View File

@ -52,6 +52,13 @@ extern "C" {
#include <sys/types.h> #include <sys/types.h>
#include <stdarg.h> #include <stdarg.h>
#if defined(_MSC_VER)
/* ssize_t is part of the Posix standard but not the C standard.
It is not supported in MSVC. */
# include <BaseTsd.h>
# define ssize_t SSIZE_T
#endif
#include <nghttp2/nghttp2ver.h> #include <nghttp2/nghttp2ver.h>
#ifdef NGHTTP2_STATICLIB #ifdef NGHTTP2_STATICLIB