Support missing symbols
This commit is contained in:
parent
ce87f3b8f5
commit
540a76faf8
|
@ -82,7 +82,10 @@ my %defs;
|
|||
for my $idx (0..$#symb){
|
||||
$_=$symb[$idx];
|
||||
if(!$types{$_}){
|
||||
warn "Couldn't find $symb[$idx]";
|
||||
warn "Couldn't find $symb[$idx] - ignoring it.";
|
||||
print C "NULL,";
|
||||
print I "#define $_ (NULL)";
|
||||
next;
|
||||
};
|
||||
if(!$defs{$files{$_}}){
|
||||
print H qq!#include "$files{$_}"!;
|
||||
|
@ -103,3 +106,5 @@ close(I);
|
|||
close(H);
|
||||
close(C);
|
||||
|
||||
print "done.";
|
||||
|
||||
|
|
Loading…
Reference in New Issue