Don't include <winsock2.h> when wxUSE_SOCKETS==0
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user