diff options
Diffstat (limited to 'src/include/ipxe/efi/import.pl')
| -rwxr-xr-x | src/include/ipxe/efi/import.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/ipxe/efi/import.pl b/src/include/ipxe/efi/import.pl index cbc320514..34aed9a28 100755 --- a/src/include/ipxe/efi/import.pl +++ b/src/include/ipxe/efi/import.pl @@ -79,13 +79,13 @@ sub try_import_file { print $outfh "$_\n"; # Apply FILE_LICENCE() immediately after include guard if ( defined $maybe_guard && ! defined $guard ) { - if ( /^\#define\s+_?_${maybe_guard}_?_$/ ) { + if ( /^\#define\s+${maybe_guard}$/ ) { $guard = $maybe_guard; print $outfh "\nFILE_LICENCE ( $licence );\n" if $licence; } undef $maybe_guard; } - if ( /^#ifndef\s+_?_(\S+)_?_/ ) { + if ( /^#ifndef\s+(_?_?\S+_?_)/ ) { $maybe_guard = $1; } } |
