diff options
author | Eric Blake <eblake@redhat.com> | 2016-02-08 08:36:46 -0700 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:45:28 -0600 |
commit | 1da67b9ab2f3c110d4397a8f65a62b1684fa9439 (patch) | |
tree | 5f38c5b62b79283b6671b648596e9954c713e4f4 /scripts/qapi-types.py | |
parent | c824f57faeea96a8e5ee73f66d287b4289724cde (diff) | |
download | hqemu-1da67b9ab2f3c110d4397a8f65a62b1684fa9439.zip hqemu-1da67b9ab2f3c110d4397a8f65a62b1684fa9439.tar.gz |
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 <eblake@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/qapi-types.py')
-rw-r--r-- | scripts/qapi-types.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py index d3f631a..7b0dca8 100644 --- a/scripts/qapi-types.py +++ b/scripts/qapi-types.py @@ -279,6 +279,7 @@ h_comment = ''' c_comment, h_comment) fdef.write(mcgen(''' +#include "qemu/osdep.h" #include "qapi/dealloc-visitor.h" #include "%(prefix)sqapi-types.h" #include "%(prefix)sqapi-visit.h" @@ -287,8 +288,6 @@ fdef.write(mcgen(''' # To avoid circular headers, use only typedefs.h here, not qobject.h fdecl.write(mcgen(''' -#include <stdbool.h> -#include <stdint.h> #include "qemu/typedefs.h" ''')) |