[PATCH] sim: fix compilation on mingw64
Mike Frysinger
vapier@gentoo.org
Fri Oct 29 05:23:38 GMT 2021
On 28 Oct 2021 09:07, Orgad Shaneh via Gdb-patches wrote:
> ...by reordering includes.
>
> 1. sim-utils.c
>
> sim/mips/sim-main.h defines UserMode, while there is a struct in winnt.h
> which has UserMode as a member. So if sim-main.h is included before winnt.h,
> compilation fails.
>
> 2. ppc
>
> registers.h defines CR, which is used as a member in winnt.h.
>
> winsock2.h is included by sys/time.h, so sys/time.h has to be included
> before registers.h.
these changes lgtm, thanks!
if you need me to push, lmk.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/gdb-patches/attachments/20211029/3c4dff85/attachment.sig>
More information about the Gdb-patches
mailing list