From 353ea2d106a51cfd1680f7d351f35eb8f69c9248 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 3 May 2019 10:55:33 +0300 Subject: On MS-Windows, define _WIN32_WINNT in a single common place. This changeset defines _WIN32_WINNT to at least 0x0501, the level of Windows XP, unless defined to a higher level, in a single place. It then removes all the overrides of _WIN32_WINNT in individual files as no longer needed. Doing this also solves compilation of windows-nat.c with mingw.org's MinGW, as that file uses CONSOLE_FONT_INFO which needs the XP level to become exposed in the Windows headers, while mingw.org defaults to Windows 9X. gdb/ChangeLog: 2019-05-03 Eli Zaretskii * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define _WIN32_WINNT to the XP level, unless already defined to a higher level. * unittests/parse-connection-spec-selftests.c: * ser-tcp.c: * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT override. gdb/gdbserver/ChangeLog: 2019-05-03 Eli Zaretskii * remote-utils.c: * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override. --- gdb/ser-tcp.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gdb/ser-tcp.c') diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c index 039b043..927a285 100644 --- a/gdb/ser-tcp.c +++ b/gdb/ser-tcp.c @@ -39,10 +39,6 @@ #include "common/gdb_sys_time.h" #ifdef USE_WIN32API -#if _WIN32_WINNT < 0x0501 -# undef _WIN32_WINNT -# define _WIN32_WINNT 0x0501 -#endif #include #ifndef ETIMEDOUT #define ETIMEDOUT WSAETIMEDOUT -- cgit v1.1