diff options
author | Tom Tromey <tromey@adacore.com> | 2022-04-13 06:55:30 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-04-14 12:12:34 -0600 |
commit | a69599e68bf243a50b6aee3a63ed48ada1f9c8cc (patch) | |
tree | cd9246f5f58dccd7c0d9a870436c5aad3d9a992e /gdb/nat | |
parent | a79fa8c5fb5a8a09da25c6858381d8f34b597c12 (diff) | |
download | fsf-binutils-gdb-a69599e68bf243a50b6aee3a63ed48ada1f9c8cc.zip fsf-binutils-gdb-a69599e68bf243a50b6aee3a63ed48ada1f9c8cc.tar.gz fsf-binutils-gdb-a69599e68bf243a50b6aee3a63ed48ada1f9c8cc.tar.bz2 |
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.
Diffstat (limited to 'gdb/nat')
-rw-r--r-- | gdb/nat/windows-nat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/nat/windows-nat.c b/gdb/nat/windows-nat.c index 2e4c482..a82aa89 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 { |