summaryrefslogtreecommitdiffstats
path: root/spice_codegen.py
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2014-03-25 16:32:16 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2014-04-16 16:47:55 +0200
commitb3a00f4411962e0c06c7ad89a9936df388aa0023 (patch)
tree60dc228450145306a9ecbe507d3d3b196b7e23de /spice_codegen.py
parent90a1240f274b55ae0b406e8f1edaadaa87748bec (diff)
downloadspice-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-xspice_codegen.py4
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)