libmicrohttpd

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

commit 5a85e406496f7c3e5ef3bd0f36dbf5327b22aa21
parent 2ee782685cd07eaa598f8d1b8577b06b9cf48785
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Mon, 22 Dec 2014 19:42:50 +0000

[w32] Help code to detect IPPROTO_IPV6 on VC

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

diff --git a/src/include/platform.h b/src/include/platform.h @@ -197,4 +197,9 @@ typedef int MHD_pipe; typedef MHD_socket MHD_pipe; #endif /* ! MHD_DONT_USE_PIPES */ +#if !defined(IPPROTO_IPV6) && defined(_MSC_FULL_VER) && _WIN32_WINNT >= 0x0501 +/* VC use IPPROTO_IPV6 as part of enum */ +#define IPPROTO_IPV6 IPPROTO_IPV6 +#endif + #endif