Re: [perl #18872] File::Basename example misleading
[p5sagit/p5-mst-13.2.git] / embed.pl
index 9e5c62b..8a1f2a0 100755 (executable)
--- a/embed.pl
+++ b/embed.pl
@@ -22,7 +22,7 @@ sub do_not_edit ($)
 
    $file
 
-   Copyright (c) 1997-2002, Larry Wall
+   Copyright (c) 1997-2003, Larry Wall
 
    You may distribute under the terms of either the GNU General Public
    License or the Artistic License, as specified in the README file.
@@ -344,7 +344,7 @@ walk_table {
                $ret .= hide($func,"Perl_$func");
            }
        }
-         unless ($flags =~ /A/) {
+       if ($ret ne '' && $flags !~ /A/) {
            if ($flags =~ /E/) {
                $ret = "#if defined(PERL_CORE) || defined(PERL_EXT)\n$ret#endif\n";
            } else {