commit | 1352aabb238dc0f21097b753d6fdb931e533db41 | [log] [tgz] |
---|---|---|
author | Orgad Shaneh <orgads@gmail.com> | Thu Oct 28 09:07:46 2021 +0000 |
committer | Mike Frysinger <vapier@gentoo.org> | Sat Oct 30 23:50:09 2021 -0400 |
tree | b0759c19c45b6089730fc2624cf73beb0c120768 | |
parent | 590abc168fb25908cde1df89f4905b575c14e55d [diff] |
sim: fix compilation on mingw64 [PR sim/28476] ...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. Bug: https://sourceware.org/PR28476