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:
Christophe Fergeau 2011-04-21 13:16:18 +02:00
parent 78c1465ed3
commit 7e30572ab1

View File

@ -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")