summaryrefslogtreecommitdiffstats
path: root/python_modules/marshal.py
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2014-03-19 15:41:07 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2014-04-16 16:47:55 +0200
commit90a1240f274b55ae0b406e8f1edaadaa87748bec (patch)
tree58d63de099021c1137f0980b38bc88c288068514 /python_modules/marshal.py
parent7ea1cc54b1cdc105e086c154cc15b2541937c7b7 (diff)
downloadspice-common-90a1240f274b55ae0b406e8f1edaadaa87748bec.tar.gz
spice-common-90a1240f274b55ae0b406e8f1edaadaa87748bec.tar.xz
spice-common-90a1240f274b55ae0b406e8f1edaadaa87748bec.zip
Use #include "common/..." in (de)marshallers
Now that they are created in $builddir, their includes will need to refer to files in $srcdir, which can be different. It's cleaner to add -I $(top_srcdir)/spice-common/ to modules using spice-common rather than having -I $(top_srcdir)/spice-common/common which would could create header collisions.
Diffstat (limited to 'python_modules/marshal.py')
-rw-r--r--python_modules/marshal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python_modules/marshal.py b/python_modules/marshal.py
index 4020799..ae5fe31 100644
--- a/python_modules/marshal.py
+++ b/python_modules/marshal.py
@@ -4,7 +4,7 @@ import codegen
def write_includes(writer):
writer.header.writeln("#include <spice/protocol.h>")
- writer.header.writeln('#include "marshaller.h"')
+ writer.header.writeln('#include "common/marshaller.h"')
writer.header.newline()
writer.header.writeln("#ifndef _GENERATED_HEADERS_H")
writer.header.writeln("#define _GENERATED_HEADERS_H")
@@ -15,7 +15,7 @@ def write_includes(writer):
writer.writeln("#include <stdio.h>")
writer.writeln("#include <spice/protocol.h>")
writer.writeln("#include <spice/macros.h>")
- writer.writeln('#include "marshaller.h"')
+ writer.writeln('#include "common/marshaller.h"')
writer.newline()
writer.writeln("#ifdef _MSC_VER")
writer.writeln("#pragma warning(disable:4101)")