diff options
author | ben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-04-07 11:30:48 +0000 |
---|---|---|
committer | ben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-04-07 11:30:48 +0000 |
commit | 23ce10ce355053cfa60a6c89c35f3a8d6e619fe8 (patch) | |
tree | c8386864beced469577d6111460c693dc5a66024 /vidix | |
parent | 15ed4ece3a5677cb2125b0949536f859eb7e9174 (diff) | |
download | mpv-23ce10ce355053cfa60a6c89c35f3a8d6e619fe8.tar.bz2 mpv-23ce10ce355053cfa60a6c89c35f3a8d6e619fe8.tar.xz |
missing includes in generated file
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22930 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'vidix')
-rw-r--r-- | vidix/pci_db2c.awk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vidix/pci_db2c.awk b/vidix/pci_db2c.awk index feaa1c7a1e..3d487d1c78 100644 --- a/vidix/pci_db2c.awk +++ b/vidix/pci_db2c.awk @@ -29,6 +29,7 @@ BEGIN { 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 @@ BEGIN { 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; |