Network/Windows: Fix build on compilers with outdated windows.h (Fixes 63)
Former-commit-id: f44bbd435ac7917615d3040489cd0528514c933b [formerly 3eb3a0e73fbefc629d0ee6966a19ba259cacfb79] Former-commit-id: d60d7bfb07651a6345e7ac63e73cbdddc1dd0800
This commit is contained in:
parent
48a7ba0114
commit
fdf0c8480d
|
|
@ -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