Merge branch 'winsock-2'
Use WinSock 2 rather than 1.1 by default and also enable IPv6 support, requiring WinSock 2, by default now that it can be done. See https://github.com/wxWidgets/wxWidgets/pull/2335 Closes #15562.
This commit is contained in:
@@ -561,14 +561,10 @@
|
||||
|
||||
// Set to 1 to use ipv6 socket classes (requires wxUSE_SOCKETS)
|
||||
//
|
||||
// Notice that currently setting this option under Windows will result in
|
||||
// programs which can only run on recent OS versions (with ws2_32.dll
|
||||
// installed) which is why it is disabled by default.
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1 if you need IPv6 support
|
||||
#define wxUSE_IPV6 0
|
||||
// Recommended setting: 1.
|
||||
#define wxUSE_IPV6 1
|
||||
|
||||
// Set to 1 to enable virtual file systems (required by wxHTML)
|
||||
#define wxUSE_FILESYSTEM 1
|
||||
|
||||
@@ -562,14 +562,10 @@
|
||||
|
||||
// Set to 1 to use ipv6 socket classes (requires wxUSE_SOCKETS)
|
||||
//
|
||||
// Notice that currently setting this option under Windows will result in
|
||||
// programs which can only run on recent OS versions (with ws2_32.dll
|
||||
// installed) which is why it is disabled by default.
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1 if you need IPv6 support
|
||||
#define wxUSE_IPV6 0
|
||||
// Recommended setting: 1.
|
||||
#define wxUSE_IPV6 1
|
||||
|
||||
// Set to 1 to enable virtual file systems (required by wxHTML)
|
||||
#define wxUSE_FILESYSTEM 1
|
||||
@@ -1772,12 +1768,12 @@
|
||||
// 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>
|
||||
// Set to 0 if you need to include <winsock.h> rather than <winsock2.h>
|
||||
//
|
||||
// Default is 0.
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 0, set to 1 automatically if wxUSE_IPV6 is 1.
|
||||
#define wxUSE_WINSOCK2 0
|
||||
// Recommended setting: 1, required to be 1 if wxUSE_IPV6 is 1.
|
||||
#define wxUSE_WINSOCK2 1
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Generic versions of native controls
|
||||
|
||||
@@ -562,14 +562,10 @@
|
||||
|
||||
// Set to 1 to use ipv6 socket classes (requires wxUSE_SOCKETS)
|
||||
//
|
||||
// Notice that currently setting this option under Windows will result in
|
||||
// programs which can only run on recent OS versions (with ws2_32.dll
|
||||
// installed) which is why it is disabled by default.
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1 if you need IPv6 support
|
||||
#define wxUSE_IPV6 0
|
||||
// Recommended setting: 1.
|
||||
#define wxUSE_IPV6 1
|
||||
|
||||
// Set to 1 to enable virtual file systems (required by wxHTML)
|
||||
#define wxUSE_FILESYSTEM 1
|
||||
|
||||
@@ -562,14 +562,10 @@
|
||||
|
||||
// Set to 1 to use ipv6 socket classes (requires wxUSE_SOCKETS)
|
||||
//
|
||||
// Notice that currently setting this option under Windows will result in
|
||||
// programs which can only run on recent OS versions (with ws2_32.dll
|
||||
// installed) which is why it is disabled by default.
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1 if you need IPv6 support
|
||||
#define wxUSE_IPV6 0
|
||||
// Recommended setting: 1.
|
||||
#define wxUSE_IPV6 1
|
||||
|
||||
// Set to 1 to enable virtual file systems (required by wxHTML)
|
||||
#define wxUSE_FILESYSTEM 1
|
||||
@@ -1772,12 +1768,12 @@
|
||||
// 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>
|
||||
// Set to 0 if you need to include <winsock.h> rather than <winsock2.h>
|
||||
//
|
||||
// Default is 0.
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 0, set to 1 automatically if wxUSE_IPV6 is 1.
|
||||
#define wxUSE_WINSOCK2 0
|
||||
// Recommended setting: 1, required to be 1 if wxUSE_IPV6 is 1.
|
||||
#define wxUSE_WINSOCK2 1
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Generic versions of native controls
|
||||
|
||||
@@ -166,12 +166,12 @@
|
||||
// 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>
|
||||
// Set to 0 if you need to include <winsock.h> rather than <winsock2.h>
|
||||
//
|
||||
// Default is 0.
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 0, set to 1 automatically if wxUSE_IPV6 is 1.
|
||||
#define wxUSE_WINSOCK2 0
|
||||
// Recommended setting: 1, required to be 1 if wxUSE_IPV6 is 1.
|
||||
#define wxUSE_WINSOCK2 1
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Generic versions of native controls
|
||||
|
||||
@@ -32,6 +32,12 @@
|
||||
// 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
|
||||
// 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).
|
||||
#ifndef _WINSOCK_DEPRECATED_NO_WARNINGS
|
||||
#define _WINSOCK_DEPRECATED_NO_WARNINGS
|
||||
#endif
|
||||
#include <winsock2.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -568,14 +568,10 @@
|
||||
|
||||
// Set to 1 to use ipv6 socket classes (requires wxUSE_SOCKETS)
|
||||
//
|
||||
// Notice that currently setting this option under Windows will result in
|
||||
// programs which can only run on recent OS versions (with ws2_32.dll
|
||||
// installed) which is why it is disabled by default.
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1 if you need IPv6 support
|
||||
#define wxUSE_IPV6 0
|
||||
// Recommended setting: 1.
|
||||
#define wxUSE_IPV6 1
|
||||
|
||||
// Set to 1 to enable virtual file systems (required by wxHTML)
|
||||
#define wxUSE_FILESYSTEM 1
|
||||
|
||||
@@ -558,14 +558,10 @@
|
||||
|
||||
// Set to 1 to use ipv6 socket classes (requires wxUSE_SOCKETS)
|
||||
//
|
||||
// Notice that currently setting this option under Windows will result in
|
||||
// programs which can only run on recent OS versions (with ws2_32.dll
|
||||
// installed) which is why it is disabled by default.
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1 if you need IPv6 support
|
||||
#define wxUSE_IPV6 0
|
||||
// Recommended setting: 1.
|
||||
#define wxUSE_IPV6 1
|
||||
|
||||
// Set to 1 to enable virtual file systems (required by wxHTML)
|
||||
#define wxUSE_FILESYSTEM 1
|
||||
|
||||
@@ -561,14 +561,10 @@
|
||||
|
||||
// Set to 1 to use ipv6 socket classes (requires wxUSE_SOCKETS)
|
||||
//
|
||||
// Notice that currently setting this option under Windows will result in
|
||||
// programs which can only run on recent OS versions (with ws2_32.dll
|
||||
// installed) which is why it is disabled by default.
|
||||
//
|
||||
// Default is 1.
|
||||
//
|
||||
// Recommended setting: 1 if you need IPv6 support
|
||||
#define wxUSE_IPV6 0
|
||||
// Recommended setting: 1.
|
||||
#define wxUSE_IPV6 1
|
||||
|
||||
// Set to 1 to enable virtual file systems (required by wxHTML)
|
||||
#define wxUSE_FILESYSTEM 1
|
||||
|
||||
Reference in New Issue
Block a user