#if POCO_HAVE_IPv6 => #if defined(POCO_HAVE_IPv6)

This commit is contained in:
Aleksandar Fabijanic
2009-04-04 15:59:52 +00:00
parent 8fe9757195
commit 0b6fd120c5
3 changed files with 3 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ DatagramSocketImpl::DatagramSocketImpl(IPAddress::Family family)
{ {
if (family == IPAddress::IPv4) if (family == IPAddress::IPv4)
init(AF_INET); init(AF_INET);
#if POCO_HAVE_IPv6 #if defined(POCO_HAVE_IPv6)
else if (family == IPAddress::IPv6) else if (family == IPAddress::IPv6)
init(AF_INET6); init(AF_INET6);
#endif #endif

View File

@@ -63,7 +63,7 @@ ICMPPacket::ICMPPacket(IPAddress::Family family, int dataSize):_pImpl(0)
{ {
if (family == IPAddress::IPv4) if (family == IPAddress::IPv4)
_pImpl = new ICMPv4PacketImpl(dataSize); _pImpl = new ICMPv4PacketImpl(dataSize);
#if POCO_HAVE_IPv6 #if defined(POCO_HAVE_IPv6)
else if (family == IPAddress::IPv6) else if (family == IPAddress::IPv6)
throw NotImplementedException("ICMPv6 packets not implemented."); throw NotImplementedException("ICMPv6 packets not implemented.");
#endif #endif

View File

@@ -55,7 +55,7 @@ RawSocketImpl::RawSocketImpl(IPAddress::Family family, int proto)
{ {
if (family == IPAddress::IPv4) if (family == IPAddress::IPv4)
init2(AF_INET, proto); init2(AF_INET, proto);
#if POCO_HAVE_IPv6 #if defined(POCO_HAVE_IPv6)
else if (family == IPAddress::IPv6) else if (family == IPAddress::IPv6)
init2(AF_INET6, proto); init2(AF_INET6, proto);
#endif #endif