mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-26 14:18:36 +00:00
don't #include config.h in generated header files
7e30572ab adds a #include <config.h> to the beginning of generated files. It also does this for generated headers and enums files, which is not wanted, especially if it's an installed file. This commit only adds this include for the non-header non-enum case (hopefully, enums are only generated for use in a .h file).
This commit is contained in:
parent
e0a8d6625c
commit
da4768ae2b
@ -144,9 +144,10 @@ 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")
|
||||
if not options.header and not options.generate_enums:
|
||||
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