diff options
Diffstat (limited to 'spice_codegen.py')
-rwxr-xr-x | spice_codegen.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spice_codegen.py b/spice_codegen.py index c6d6aa96..a9fdee98 100755 --- a/spice_codegen.py +++ b/spice_codegen.py @@ -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") |