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 committed 2011-05-03 14:44:10 +02:00
1 parent 78c1465ed3
commit 7e30572ab1
1 file changed
+4
+4
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")