]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix possible Cygwin build problem
authorTom Tromey <tromey@adacore.com>
Wed, 13 Apr 2022 12:55:30 +0000 (06:55 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 14 Apr 2022 18:12:34 +0000 (12:12 -0600)
I noticed that nat/windows-nat.c checks __USEWIDE, but nothing sets it
there -- I forgot to copy over the definition when making this file.
This patch tries to fix the problem.  I don't have a Cygwin setup, so
I don't know whether this is sufficient, but it's probably necessary.

gdb/nat/windows-nat.c

index 2e4c4826797af96a79df93d5e72bc5bbb0ce7264..a82aa89b08513fe4cb451fa7d22ce3eb50f1f9d9 100644 (file)
 #include "nat/windows-nat.h"
 #include "gdbsupport/common-debug.h"
 
+#ifdef __CYGWIN__
+#define __USEWIDE
+#endif
+
 namespace windows_nat
 {