Network/Windows: Fix build on compilers with outdated windows.h

Former-commit-id: fcff03e6328d1ce6fed4f14f5606245d0ca7a495 [formerly a35c4aeaf8e6030b1f3a7665b448c3fb57d095e7]
Former-commit-id: 33d61f93f2a53e81a4f7a79f8bddaa5daa831e6d
This commit is contained in:
Lynix 2016-06-08 12:58:04 +02:00
parent f9d6cfcf07
commit 400bb9027b
2 changed files with 4 additions and 0 deletions

View File

@ -100,6 +100,7 @@ namespace Nz
return IpAddress::Invalid;
}
#if NAZARA_CORE_WINDOWS_VISTA
IpAddress IpAddressImpl::FromAddrinfo(const addrinfoW* info)
{
switch (info->ai_family)
@ -121,6 +122,7 @@ namespace Nz
return IpAddress::Invalid;
}
#endif
IpAddress IpAddressImpl::FromSockAddr(const sockaddr* address)
{

View File

@ -17,7 +17,9 @@ namespace Nz
~IpAddressImpl() = delete;
static IpAddress FromAddrinfo(const addrinfo* info);
#if NAZARA_CORE_WINDOWS_VISTA
static IpAddress FromAddrinfo(const addrinfoW* info);
#endif
static IpAddress FromSockAddr(const sockaddr* address);
static IpAddress FromSockAddr(const sockaddr_in* addressv4);
static IpAddress FromSockAddr(const sockaddr_in6* addressv6);