Network/Windows: Fix build on compilers with outdated windows.h (Fixes 63)
Former-commit-id: d035029cb037dd4a8a91a85f0b750572a2b938c0 [formerly 693cb8be89964f7f2c752a6a928e07c042210e76] Former-commit-id: a4d4255872b47193c3456c65926041d0bd73b5ed
This commit is contained in:
parent
f9d6cfcf07
commit
6b42e5a604
|
|
@ -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