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:
parent
f9d6cfcf07
commit
400bb9027b
|
|
@ -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