mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2025-12-26 22:55:30 +00: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:
parent
fbead3281f
commit
975ebc9b7d
@ -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")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user