X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d98a58c543948d84d9287e6fa53a5539d662b7a5..b8f0ac88a51be909c0e5b87657ea0a5dc9bbb721:/src/common/sckaddr.cpp diff --git a/src/common/sckaddr.cpp b/src/common/sckaddr.cpp index 0d8c33609b..3d25f93154 100644 --- a/src/common/sckaddr.cpp +++ b/src/common/sckaddr.cpp @@ -37,9 +37,7 @@ #include #include - #if !defined(__MWERKS__) - #include - #endif + #include #endif // !WX_PRECOMP #include "wx/socket.h" @@ -49,7 +47,7 @@ #include -#if defined(__UNIX__) && !defined(__CYGWIN__) +#if defined(__UNIX__) && !defined(__WXMSW__) #include #include #endif // __UNIX__ @@ -94,19 +92,20 @@ IMPLEMENT_DYNAMIC_CLASS(wxUNIXaddress, wxSockAddress) #define wxHAS_MT_SAFE_GETBY_FUNCS #if wxUSE_IPV6 - // this header does dynamic dispatching of getaddrinfo/freeaddrinfo() - // by implementing them in its own code if the system versions are not - // available (as is the case for anything < XP) - // - // NB: if this is not available for the other compilers (so far tested - // with MSVC only) we should just use wxDynamicLibrary "manually" #ifdef __VISUALC__ - // disable a warning occurring in Microsoft own version of this file + // this header does dynamic dispatching of getaddrinfo/freeaddrinfo() + // by implementing them in its own code if the system versions are + // not available (as is the case for anything < XP) + #pragma warning(push) #pragma warning(disable:4706) - #endif - #include - #ifdef __VISUALC__ - #pragma warning(default:4706) + #include + #pragma warning(pop) + #else + // TODO: Use wxDynamicLibrary to bind to these functions + // dynamically on older Windows systems, currently a program + // built with wxUSE_IPV6==1 won't even start there, even if + // it doesn't actually use the socket stuff. + #include #endif #endif #endif // __WINDOWS__