浏览代码

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 13 年之前
父节点
当前提交
b68a8472c1
共有 1 个文件被更改,包括 2 次插入1 次删除
  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)))