OSDN Git Service

hw/gpio/aspeed_gpio.c: Don't directly include assert.h
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 3 Apr 2020 12:47:12 +0000 (13:47 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 3 Apr 2020 18:24:53 +0000 (19:24 +0100)
commitc88311f272f5599abd7ee12a7a724a4f2bd5820c
treeb210c04fe5e5be4d52292a8549d5a520f0c8afc8
parent07d1be3b3aac20c21ac4a95c7f3f01a3622a31a3
hw/gpio/aspeed_gpio.c: Don't directly include assert.h

Remove a direct include of assert.h -- this is already
provided by qemu/osdep.h, and it breaks our rule that the
first include must always be osdep.h.

In particular we must get the assert() macro via osdep.h
to avoid compile failures on mingw (see the comment in
osdep.h where we redefine assert() for that platform).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-id: 20200403124712.24826-1-peter.maydell@linaro.org
hw/gpio/aspeed_gpio.c