Patchwork [19/48] qapi: qapi-types.h: don't include qapi/qapi-types-core.h

login
register
mail settings
Submitter Luiz Capitulino
Date Aug. 13, 2012, 7:48 p.m.
Message ID <1344887349-13041-20-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/177118/
State New
Headers show

Comments

Luiz Capitulino - Aug. 13, 2012, 7:48 p.m.
qapi-types.h needs only qemu-common.h. Including qapi-types-core.h
causes problems when qerror.h or error.h includes qapi-types.h.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
---
 scripts/qapi-types.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py
index 4a734f5..3ed9f04 100644
--- a/scripts/qapi-types.py
+++ b/scripts/qapi-types.py
@@ -253,7 +253,8 @@  fdecl.write(mcgen('''
 #ifndef %(guard)s
 #define %(guard)s
 
-#include "qapi/qapi-types-core.h"
+#include "qemu-common.h"
+
 ''',
                   guard=guardname(h_file)))