libmicrohttpd

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

commit 5f568b003a36a68a08e005f4fc3c2192b82a8073
parent 3e2d1f25f2885bf726ea4f510b6ccdd519532eb4
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Wed, 26 Feb 2014 17:55:34 +0000

Improve header compatibility with MSVC

Diffstat:
Msrc/include/microhttpd.h | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h @@ -107,12 +107,16 @@ extern "C" #ifndef MHD_PLATFORM_H #include <stdarg.h> #include <stdint.h> +#include <sys/types.h> #if defined(_WIN32) && !defined(__CYGWIN__) #include <ws2tcpip.h> +#if defined(_MSC_FULL_VER) && !defined (_SSIZE_T_DEFINED) +#define _SSIZE_T_DEFINED +typedef intptr_t ssize_t; +#endif // !_SSIZE_T_DEFINED */ #else #include <unistd.h> #include <sys/time.h> -#include <sys/types.h> #include <sys/socket.h> #endif #endif