diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2022-09-05 13:29:38 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2022-09-26 11:02:29 +0200 |
commit | 092d7509db47376a7b910f7af05678058bd9bd3c (patch) | |
tree | b27ea2a1ee6464f6ac520bce0b7ead1772cdec3d /gcc/ada/gsocket.h | |
parent | af61dc3ffd7c184571bcf1d773d97716cfe6093a (diff) | |
download | gcc-092d7509db47376a7b910f7af05678058bd9bd3c.zip gcc-092d7509db47376a7b910f7af05678058bd9bd3c.tar.gz gcc-092d7509db47376a7b910f7af05678058bd9bd3c.tar.bz2 |
ada: Remove socket definitions for ancient MinGW
Modern MinGW defines _WIN32_WINNT as 0xa00, so there is no need go guard
against it being lower than 0x0600 or setting it to 0x0501.
gcc/ada/
* gsocket.h: Remove redefinition of _WIN32_WINNT.
* mingw32.h: Remove conditional definition of _WIN32_WINNT.
Diffstat (limited to 'gcc/ada/gsocket.h')
-rw-r--r-- | gcc/ada/gsocket.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/ada/gsocket.h b/gcc/ada/gsocket.h index e7284a1..561f2ff 100644 --- a/gcc/ada/gsocket.h +++ b/gcc/ada/gsocket.h @@ -80,12 +80,6 @@ #define FD_SETSIZE 1024 #ifdef __MINGW32__ -/* winsock2.h allows WSAPoll related definitions only when - * _WIN32_WINNT >= 0x0600 */ -#if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0600 -#define _WIN32_WINNT 0x0600 -#endif - #include <winsock2.h> #include <ws2tcpip.h> #include <versionhelpers.h> |