diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2014-03-25 16:32:16 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2014-04-16 16:47:55 +0200 |
commit | b3a00f4411962e0c06c7ad89a9936df388aa0023 (patch) | |
tree | 60dc228450145306a9ecbe507d3d3b196b7e23de /spice_codegen.py | |
parent | 90a1240f274b55ae0b406e8f1edaadaa87748bec (diff) | |
download | spice-common-b3a00f4411962e0c06c7ad89a9936df388aa0023.tar.gz spice-common-b3a00f4411962e0c06c7ad89a9936df388aa0023.tar.xz spice-common-b3a00f4411962e0c06c7ad89a9936df388aa0023.zip |
marshaller: Use #include <> for headers in $srcdir/common
Since the (de)marshallers are now generated in $builddir and not in
$srcdir, when these generated files include a file located in
$srcdir/common, the compiler will find them thanks to a -I directive, so it
makes more sense to use <> rather than "" when including them.
Diffstat (limited to 'spice_codegen.py')
-rwxr-xr-x | spice_codegen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spice_codegen.py b/spice_codegen.py index d35d949..c8376cc 100755 --- a/spice_codegen.py +++ b/spice_codegen.py @@ -209,8 +209,8 @@ if options.print_error: if options.includes: for i in options.includes: - writer.header.writeln('#include "%s"' % i) - writer.writeln('#include "%s"' % i) + writer.header.writeln('#include <%s>' % i) + writer.writeln('#include <%s>' % i) if options.generate_enums or options.generate_dissector: write_enums(writer, options.generate_dissector) |