提交 965c1775 编写于 作者: R Richard Levitte

mkdef.pl has erroneous conditions to check if a symbol is excluded

from the given target.  Fixed, I hope.
上级 0c415ddd
......@@ -693,14 +693,15 @@ EOF
} else {
(my $n, my $i) = split /\\/, $nums{$s};
my @p = split(/,/, ($i =~ /^.*?:(.*?):/,$1));
printf OUT " %s%-40s@%d\n",($W32)?"":"_",$s,$n
# It is very important to check NT before W32
if ($NT && (!@p || (grep(/^WINNT$/,@p)
&& !grep(/^!WINNT$/,@p)))
|| $W32 && (!@p || (grep(/^WIN32$/,@p)
&& !grep(/^!WIN32$/,@p)))
|| $W16 && (!@p || (grep(/^WIN16$/,@p)
&& !grep(/^!WIN16$/,@p))));
# It is very important to check NT before W32
if (($NT && (!@p || (grep(/^WINNT$/,@p)
|| !grep(/^!WINNT$/,@p))))
|| ($W32 && (!@p || (grep(/^WIN32$/,@p)
|| !grep(/^!WIN32$/,@p))))
|| ($W16 && (!@p || (grep(/^WIN16$/,@p)
|| !grep(/^!WIN16$/,@p))))) {
printf OUT " %s%-40s@%d\n",($W32)?"":"_",$s,$n;
}
}
}
printf OUT "\n";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册