From 3985e195cb26aa5a1c1ca0039b35a5ce00dfdb45 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Tue, 29 Mar 2022 16:44:52 -0700 Subject: [PATCH] Don't include when wxUSE_SOCKETS==0 --- include/wx/msw/wrapwin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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).