Fix compilation for MinGW with wxUSE_IPV6==1.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Mar 2013 15:08:13 +0000 (15:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Mar 2013 15:08:13 +0000 (15:08 +0000)
commit87b621a5b737c09cef079bb4a9ef53be132d2ce0
tree6c6b1b135395bd23d83b4c8dd4a36f594e6f5002
parent025f5d1450a029e059807b1b0aba0233856f3891
Fix compilation for MinGW with wxUSE_IPV6==1.

MinGW doesn't provide wspiapi.h header, so only include it when using MSVC and
include ws2tcpip.h which directly declares the functions used for the other
compilers.

This doesn't have quite the same semantics but it's better than failing to
compile at all.

See #15005.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/sckaddr.cpp