From 9167ebd98f97dee8afa3ee206f1f48244b8707d2 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 8 Feb 2016 08:36:46 -0700 Subject: qapi: Clean up includes in generated files As a followup to commit cbf2115, clean up the includes in files generated by QAPI so that osdep.h is included first in .c files, and headers which it implies are not included manually. This patch is done manually, since Coccinelle (and therefore scripts/clean-includes) doesn't see into the generator scripts. Signed-off-by: Eric Blake Reviewed-by: Markus Armbruster Signed-off-by: Peter Maydell Reviewed-by: Eric Blake --- scripts/qapi-visit.py | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/qapi-visit.py') diff --git a/scripts/qapi-visit.py b/scripts/qapi-visit.py index 0fdcebc..0cc9b08 100644 --- a/scripts/qapi-visit.py +++ b/scripts/qapi-visit.py @@ -435,6 +435,7 @@ h_comment = ''' c_comment, h_comment) fdef.write(mcgen(''' +#include "qemu/osdep.h" #include "qemu-common.h" #include "%(prefix)sqapi-visit.h" ''', -- cgit v1.1