Network/Windows: Fix build on compilers with outdated windows.h (Fixes 63)
Former-commit-id: 8ef1d9bc867d0413c12e14e1c41042a73bc239a6 [formerly 4e07c16b7ea58c6d0afd6b91511c1856af155375] Former-commit-id: 1e36f93d085a06a06e9e7179f18d32284b79ee5a
This commit is contained in:
parent
fc5be0d70b
commit
f799ef654b
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue