changeset 22912:20c5536265da

missing includes in generated file
author ben
date Sat, 07 Apr 2007 11:30:48 +0000
parents c3567df39aff
children 07ecf1d8922e
files vidix/pci_db2c.awk
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/pci_db2c.awk	Sat Apr 07 11:27:24 2007 +0000
+++ b/vidix/pci_db2c.awk	Sat Apr 07 11:30:48 2007 +0000
@@ -29,6 +29,7 @@
     print_head(name_file);
     print_head(name_h_file);
     print_head(dev_ids_file);
+    print_includes(dev_ids_file);
     print "#ifndef PCI_VENDORS_INCLUDED" >vendor_file
     print "#define PCI_VENDORS_INCLUDED 1">vendor_file
     print "" >vendor_file
@@ -108,6 +109,13 @@
     print_func_bodies(name_file);
 }
 
+function print_includes(out_file)
+{
+    print "#include <stdlib.h>" >out_file;
+    print "#include \"pci_names.h\"" >out_file;
+    return;
+}
+
 function print_head( out_file)
 {
     print "/*" >out_file;