add comment to beginning of autogenerated files

This commit is contained in:
Christophe Fergeau 2011-04-21 13:25:19 +02:00
parent e0c20725c8
commit 7e2373c2e9

View File

@ -142,6 +142,8 @@ writer.set_option("source", os.path.basename(proto_file))
writer.public_prefix = options.prefix
writer.writeln("/* this is a file autogenerated by spice_codegen.py */")
writer.header.writeln("/* this is a file autogenerated by spice_codegen.py */")
writer.writeln("#ifdef HAVE_CONFIG_H")
writer.writeln("#include <config.h>")
writer.writeln("#endif")