libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 7d18a1a3ed9ff9e23e2a2675bded14f188ed0873
parent 76311f9249f7313a5068c2cf73521a874fb2e654
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Mon, 22 Dec 2014 19:41:39 +0000

platform.h: define ssize_t for MSVC compiler

Diffstat:
Msrc/include/platform.h | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/include/platform.h b/src/include/platform.h @@ -148,6 +148,10 @@ #define SHUT_RDWR SD_BOTH #endif +#if defined(_MSC_FULL_VER) && !defined (_SSIZE_T_DEFINED) +#define _SSIZE_T_DEFINED +typedef intptr_t ssize_t; +#endif // !_SSIZE_T_DEFINED */ #ifndef MHD_SOCKET_DEFINED /** * MHD_socket is type for socket FDs