mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 14:41:25 +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
78c1465ed3
commit
7e30572ab1
@ -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