Explorar el Código

qapi: qapi-types.h: don't include qapi/qapi-types-core.h

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>
Luiz Capitulino hace 13 años
padre
commit
b68a8472c1
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      scripts/qapi-types.py

+ 2 - 1
scripts/qapi-types.py

@@ -253,7 +253,8 @@ def maybe_open(really, name, opt):
 #ifndef %(guard)s
 #define %(guard)s
 
-#include "qapi/qapi-types-core.h"
+#include "qemu-common.h"
+
 ''',
                   guard=guardname(h_file)))