[PATCH] Conditionally include "<windows.h>" on common/pathstuff.c (and unbreak build on mingw*)
Eli Zaretskii
eliz@gnu.org
Fri Mar 2 13:32:00 GMT 2018
> From: Sergio Durigan Junior <sergiodj@redhat.com>
> Cc: Simon Marchi <simon.marchi@ericsson.com>, Pedro Alves <palves@redhat.com>, Joel Brobecker <brobecker@adacore.com>, Christophe Lyon <christophe.lyon@linaro.org>, Sergio Durigan Junior <sergiodj@redhat.com>
> Date: Thu, 1 Mar 2018 15:20:05 -0500
>
> +#ifdef USE_WIN32API
> +#include <windows.h>
> +#endif
Isn't USE_WIN32API specific to gdbserver? If so, perhaps it's better
to use __MINGW32__ or _WIN32 instead?
More information about the Gdb-patches
mailing list