]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Remove socket definitions for ancient MinGW
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 5 Sep 2022 11:29:38 +0000 (13:29 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 26 Sep 2022 09:02:29 +0000 (11:02 +0200)
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.

gcc/ada/gsocket.h
gcc/ada/mingw32.h

index e7284a1ef4e5235f13d7cdea81b59c1edfbf2fa6..561f2ffb5662e53ee296a424362e6159bb09c028 100644 (file)
 #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>
index a190d51076f56d3154e0833208176ce31811affc..d038211a1dc1d9833edfc4b3fe7846ebda5d9e7d 100644 (file)
 #define UNICODE  /* For Win32 API */
 #endif
 
-/* We need functionality available only starting with Windows XP */
-#ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x0501
-#endif
-
 #ifndef __CYGWIN__
 #include <tchar.h>
 #endif