qapi-types.h: Don't include qemu-common.h
authorIgor Mammedov <imammedo@redhat.com>
Sun, 19 Aug 2012 23:39:37 +0000 (01:39 +0200)
committerAndreas Färber <afaerber@suse.de>
Thu, 15 Nov 2012 01:46:20 +0000 (02:46 +0100)
Needed to prevent build breakage when CPUState becomes a child of
DeviceState.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
[ehabkost: include <stdbool.h> too]
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
scripts/qapi-types.py

index 1b84834959a13c0d8e09abb0fb041af3e379b187..6bc239187463ead5797d51661ff017db7e334bb5 100644 (file)
@@ -273,7 +273,8 @@ fdecl.write(mcgen('''
 #ifndef %(guard)s
 #define %(guard)s
 
-#include "qemu-common.h"
+#include <stdbool.h>
+#include <stdint.h>
 
 ''',
                   guard=guardname(h_file)))