From: Tom Tromey Date: Wed, 13 Apr 2022 12:55:30 +0000 (-0600) Subject: Fix possible Cygwin build problem X-Git-Tag: binutils-2_39~991 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a69599e68bf243a50b6aee3a63ed48ada1f9c8cc;p=thirdparty%2Fbinutils-gdb.git Fix possible Cygwin build problem 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. --- diff --git a/gdb/nat/windows-nat.c b/gdb/nat/windows-nat.c index 2e4c4826797..a82aa89b085 100644 --- a/gdb/nat/windows-nat.c +++ b/gdb/nat/windows-nat.c @@ -20,6 +20,10 @@ #include "nat/windows-nat.h" #include "gdbsupport/common-debug.h" +#ifdef __CYGWIN__ +#define __USEWIDE +#endif + namespace windows_nat {