Add support for building C library only with import to Visual Studio 2017.
This commit is contained in:
parent
e7e8ee5fe6
commit
d2235274d5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue