Add wxUSE_WINSOCK2 wxMSW option to include winsock2.h
Including <winsock.h> and <winsock2.h> is incompatible and if the application wants to use the latter, it may be convenient to define wxUSE_WINSOCK2 when building wxWidgets instead of having to work around winsock.h implicit inclusion from include/wx/msw/wrapwin.h. Closes https://github.com/wxWidgets/wxWidgets/pull/1122
This commit is contained in:
@@ -1661,6 +1661,13 @@
|
||||
// Recommended setting: 0, nobody uses .INI files any more
|
||||
#define wxUSE_INICONF 0
|
||||
|
||||
// Set to 1 if you need to include <winsock2.h> over <winsock.h>
|
||||
//
|
||||
// Default is 0.
|
||||
//
|
||||
// Recommended setting: 0
|
||||
#define wxUSE_WINSOCK2 0
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Generic versions of native controls
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user