Consolidate definition of USE_WIN32API
authorTom Tromey <tom@tromey.com>
Tue, 22 Oct 2019 22:22:58 +0000 (16:22 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 14 Jan 2020 23:25:02 +0000 (16:25 -0700)
commitb2ceabe8f0c2056342834b2b3f52f3b015538df3
tree8b4c16a77281523092995fcff85984a7bad6a862
parent25c51f71d5bef8b4b71aa3e35cce974b54cda731
Consolidate definition of USE_WIN32API

I noticed that USE_WIN32API is defined separately by gdbserver and
gdb.  However, because it is used by code in gdbsupport, it should be
defined by common.m4.  This approach ensures that the code will
continue to work when it is moved to the top level.

gdb/ChangeLog
2020-01-14  Tom Tromey  <tom@tromey.com>

* gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
USE_WIN32API when needed.
* configure.ac (USE_WIN32API): Don't define.
(WIN32LIBS): Use WIN32APILIBS.
* configure: Rebuild.

gdb/gdbserver/ChangeLog
2020-01-14  Tom Tromey  <tom@tromey.com>

* configure.ac (LIBS): Use WIN32APILIBS.
(USE_WIN32API): Don't define.
* configure: Rebuild.

Change-Id: I40d524d5445ebfb452b36f4d0e102f0b1e1089df
gdb/ChangeLog
gdb/configure
gdb/configure.ac
gdb/gdbserver/ChangeLog
gdb/gdbserver/configure
gdb/gdbserver/configure.ac
gdb/gdbsupport/common.m4