Don't include <winsock2.h> when wxUSE_SOCKETS==0

This commit is contained in:
Paul Cornett
2022-03-29 16:44:52 -07:00
parent 842314af4e
commit 3985e195cb

View File

@@ -35,7 +35,7 @@
// When the application wants to use <winsock2.h> (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).