mirror of
https://github.com/utmapp/spice.git
synced 2026-12-01 22:23:37 -10:00
add config.h to autogenerated files too
Modify the python (de)marshaller generator to add #include <config.h> at the beginning of the C files it generates
This commit is contained in:
1 parent
78c1465ed3
commit
7e30572ab1
1 file changed
+4
@@ -142,6 +142,10 @@ writer.set_option("source", os.path.basename(proto_file))
|
||||
|
||||
writer.public_prefix = options.prefix
|
||||
|
||||
writer.writeln("#ifdef HAVE_CONFIG_H")
|
||||
writer.writeln("#include <config.h>")
|
||||
writer.writeln("#endif")
|
||||
|
||||
if options.assert_on_error:
|
||||
writer.set_option("assert_on_error")
|
||||
|
||||
|
||||
Reference in new issue
Block a user