diff --git a/include/wx/msw/wrapwin.h b/include/wx/msw/wrapwin.h index fb7faa3340..6bda4c6a65 100644 --- a/include/wx/msw/wrapwin.h +++ b/include/wx/msw/wrapwin.h @@ -35,7 +35,7 @@ // When the application wants to use (this is required for IPv6 // support, for example), we must include it before winsock.h, and as windows.h // includes winsock.h, we have to do it before including it. -#if wxUSE_WINSOCK2 +#if wxUSE_SOCKETS && wxUSE_WINSOCK2 // Avoid warnings about Winsock 1.x functions deprecated in Winsock 2 that // we still use (and that will certainly remain available for the // foreseeable future anyhow).