summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-21 01:45:04 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-21 13:24:17 +0100
commitb6afcd632ef7bd3fecc0b0d7a76d55b15da4ba85 (patch)
tree4ca047e8bee5d9fb496917b65419c761c6ba0dbb
parent2d4e0d20003dce8399ad89663d6353778b6c917f (diff)
codegen: include headers locally
-rw-r--r--python_modules/marshal.py4
-rwxr-xr-xspice_codegen.py1
2 files changed, 3 insertions, 2 deletions
diff --git a/python_modules/marshal.py b/python_modules/marshal.py
index dc10a4c..8cbc426 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 "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 "marshaller.h"')
writer.newline()
writer.writeln("#ifdef _MSC_VER")
writer.writeln("#pragma warning(disable:4101)")
diff --git a/spice_codegen.py b/spice_codegen.py
index 759b09d..e9e64c0 100755
--- a/spice_codegen.py
+++ b/spice_codegen.py
@@ -157,6 +157,7 @@ if options.print_error:
if options.includes:
for i in options.includes:
+ writer.header.writeln('#include "%s"' % i)
writer.writeln('#include "%s"' % i)
if options.generate_enums: