提交 0b087861 编写于 作者: P Peter Maydell 提交者: Stefan Hajnoczi

qemu-pixman.h: Avoid mutual inclusion loop with console.h

Remove an unnecessary mutual inclusion loop between qemu-pixman.h and
console.h, since the former was only including the latter for
'PixelFormat*', which can be provided by typedefs.h.  This requires a
minor adjustment to the files which included qemu-pixman.h, since
they were relying on it implicitly dragging in all of console.h.
Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
Acked-by: NGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
上级 24a53049
......@@ -15,7 +15,7 @@
#pragma GCC diagnostic error "-Wredundant-decls"
#endif
#include "console.h"
#include "qemu/typedefs.h"
/*
* pixman image formats are defined to be native endian,
......
......@@ -21,6 +21,7 @@
#include "qemu/thread.h"
#include "ui/qemu-pixman.h"
#include "ui/console.h"
#include "sysemu/sysemu.h"
#define NUM_MEMSLOTS 8
......
......@@ -3,7 +3,8 @@
* See the COPYING file in the top-level directory.
*/
#include "ui/qemu-pixman.h"
#include "qemu-common.h"
#include "ui/console.h"
int qemu_pixman_get_type(int rshift, int gshift, int bshift)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册