Skip to content

Commit b8229bb

Browse files
committed
1 parent 4b8c123 commit b8229bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

specs/gdb.anod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ class GDB(spec("common")):
9696

9797
if self.env.host.os.name == "windows":
9898
configure.add("CFLAGS=-std=gnu17") # fix for new defaults in gcc 15.1.0
99+
configure.add("CXXFLAGS=-D_WIN32_WINNT=0x0600") # set min windows version
99100
configure.add("--disable-tui")
100101
configure.add(
101102
"--with-libiconv-prefix=%s"

specs/patches/gdb-0002-Fix-using-gnu-print.patch

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ index 72c1c5144f3..ccf440baf0c 100644
8383
-# define _WIN32_WINNT 0x0501
8484
+# define _WIN32_WINNT 0x0600
8585
# endif
86-
#endif /* __MINGW32__ || __CYGWIN__ */
87-
86+
#endif /* __MINGW32__ || __CYGWIN__ */
8887
diff --git a/gdbsupport/common.m4 b/gdbsupport/common.m4
8988
index 3909ec81ccb..118dba78815 100644
9089
--- gdbsupport/common.m4
@@ -103,7 +102,7 @@ index 3909ec81ccb..118dba78815 100644
103102
- # define _WIN32_WINNT 0x0501
104103
+ # define _WIN32_WINNT 0x0600
105104
# endif
106-
#endif /* __MINGW32__ || __CYGWIN__ */
105+
#endif /* __MINGW32__ || __CYGWIN__ */
107106
#include <thread>
108107

109108

0 commit comments

Comments
 (0)