mirror of
https://github.com/ipxe/ipxe
synced 2025-12-17 01:52:08 +03:00
[efi] Allow for whitespace before #include in imported EDK2 header files
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -67,7 +67,7 @@ sub try_import_file {
|
||||
s/\s*$//g;
|
||||
chomp;
|
||||
# Update include lines, and record included files
|
||||
if ( s/^\#include\s+[<\"](\S+)[>\"]/\#include <ipxe\/efi\/$1>/ ) {
|
||||
if ( s/^(\s*\#include\s+)[<\"](\S+)[>\"]/$1<ipxe\/efi\/$2>/ ) {
|
||||
push @dependencies, $1;
|
||||
}
|
||||
# Check for BSD licence statement
|
||||
|
||||
Reference in New Issue
Block a user