iis: Checks Win version before declare inet_pton

Checking for `!(NTDDI_VERSION >= NTDDI_VISTA)` to decide whenever or not
to declare the inet_pton function.
This commit is contained in:
Felipe Zimmerle 2013-12-19 13:02:21 -08:00
parent bd0980f63d
commit 28d4f9fce1

View File

@ -836,6 +836,7 @@ char *m_strcasestr(const char *haystack, const char *needle) {
}
#ifdef WIN32
#if !(NTDDI_VERSION >= NTDDI_VISTA)
int inet_pton(int family, const char *src, void *dst) {
struct addrinfo addr;
struct sockaddr_in *in = NULL;
@ -875,6 +876,7 @@ int inet_pton(int family, const char *src, void *dst) {
return -1;
}
#endif
#endif
/**
*