mirror of https://github.com/mpv-player/mpv
Add MPLAYER_ prefix to the multiple inclusion guards of generated header files.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26063 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
584fe5daf2
commit
7ea10ea3fa
|
@ -46,17 +46,17 @@ BEGIN {
|
|||
print_head(name_h_file);
|
||||
print_head(dev_ids_file);
|
||||
print_includes(dev_ids_file);
|
||||
print "#ifndef PCI_VENDORS_H" >vendor_file
|
||||
print "#define PCI_VENDORS_H">vendor_file
|
||||
print "#ifndef MPLAYER_PCI_VENDORS_H" >vendor_file
|
||||
print "#define MPLAYER_PCI_VENDORS_H">vendor_file
|
||||
print "" >vendor_file
|
||||
print "#ifndef PCI_IDS_H" >ids_file
|
||||
print "#define PCI_IDS_H">ids_file
|
||||
print "#ifndef MPLAYER_PCI_IDS_H" >ids_file
|
||||
print "#define MPLAYER_PCI_IDS_H">ids_file
|
||||
print "" >ids_file
|
||||
print "#include \"pci_vendors.h\"">ids_file
|
||||
print "" >ids_file
|
||||
|
||||
print "#ifndef PCI_NAMES_H" >name_h_file
|
||||
print "#define PCI_NAMES_H">name_h_file
|
||||
print "#ifndef MPLAYER_PCI_NAMES_H" >name_h_file
|
||||
print "#define MPLAYER_PCI_NAMES_H">name_h_file
|
||||
print "" >name_h_file
|
||||
print_name_struct(name_h_file);
|
||||
print "#include <stddef.h>">name_file
|
||||
|
@ -116,11 +116,11 @@ BEGIN {
|
|||
}
|
||||
#print "Total lines parsed:", line;
|
||||
print "">vendor_file
|
||||
print "#endif /* PCI_VENDORS_H */">vendor_file
|
||||
print "#endif /* MPLAYER_PCI_VENDORS_H */">vendor_file
|
||||
print "">ids_file
|
||||
print "#endif /* PCI_IDS_H */">ids_file
|
||||
print "#endif /* MPLAYER_PCI_IDS_H */">ids_file
|
||||
print "">name_h_file
|
||||
print "#endif /* PCI_NAMES_H */">name_h_file
|
||||
print "#endif /* MPLAYER_PCI_NAMES_H */">name_h_file
|
||||
if (with_pci_db) print "};">name_file
|
||||
print "{ 0xFFFF, NULL }" >dev_ids_file;
|
||||
print "};">dev_ids_file
|
||||
|
|
Loading…
Reference in New Issue