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

Former-commit-id: 96643108e3393c569bead44fb9783af1ada1b89d [formerly c04dd5024e87898f5dd1b6de53c28373558c4bf9]
Former-commit-id: 13d6954d0185499fa86239106dd01be82303ea9f
This commit is contained in:
Lynix 2016-06-08 12:58:04 +02:00
parent fc5be0d70b
commit 575e308cf4
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);