Skip to content

Commit 0b6fd12

Browse files
committed
#if POCO_HAVE_IPv6 => #if defined(POCO_HAVE_IPv6)
1 parent 8fe9757 commit 0b6fd12

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Net/src/DatagramSocketImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ DatagramSocketImpl::DatagramSocketImpl(IPAddress::Family family)
5555
{
5656
if (family == IPAddress::IPv4)
5757
init(AF_INET);
58-
#if POCO_HAVE_IPv6
58+
#if defined(POCO_HAVE_IPv6)
5959
else if (family == IPAddress::IPv6)
6060
init(AF_INET6);
6161
#endif

Net/src/ICMPPacket.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ ICMPPacket::ICMPPacket(IPAddress::Family family, int dataSize):_pImpl(0)
6363
{
6464
if (family == IPAddress::IPv4)
6565
_pImpl = new ICMPv4PacketImpl(dataSize);
66-
#if POCO_HAVE_IPv6
66+
#if defined(POCO_HAVE_IPv6)
6767
else if (family == IPAddress::IPv6)
6868
throw NotImplementedException("ICMPv6 packets not implemented.");
6969
#endif

Net/src/RawSocketImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ RawSocketImpl::RawSocketImpl(IPAddress::Family family, int proto)
5555
{
5656
if (family == IPAddress::IPv4)
5757
init2(AF_INET, proto);
58-
#if POCO_HAVE_IPv6
58+
#if defined(POCO_HAVE_IPv6)
5959
else if (family == IPAddress::IPv6)
6060
init2(AF_INET6, proto);
6161
#endif

0 commit comments

Comments
 (0)