]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qemu-pixman.h: Avoid mutual inclusion loop with console.h
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 21 Jan 2013 12:03:47 +0000 (12:03 +0000)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 30 Jan 2013 10:16:28 +0000 (11:16 +0100)
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: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
include/ui/qemu-pixman.h
include/ui/spice-display.h
ui/qemu-pixman.c

index 016fd877268fed6b982fd54438d8125cb445b9a3..b032f529aa73b0190230fe9bae92863b140d9389 100644 (file)
@@ -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,
index 8b192e961380c252b2640c0eb3f2727f111d6fed..46f9530fe3c1f84703ded4fb55e7817ba35f119f 100644 (file)
@@ -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
index 609335ab1153fb9cd6cc9ae95ca6491a47b95035..6dcbe905468de5152665e59abcf150d5480486e0 100644 (file)
@@ -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)
 {