提交 1e414935 编写于 作者: B Bodo Möller

Handle "#if 0" correctly (I hope)

上级 8ce97163
...@@ -214,6 +214,11 @@ sub do_defs ...@@ -214,6 +214,11 @@ sub do_defs
push(@tag,"TRUE"); push(@tag,"TRUE");
$tag{"TRUE"}=1; $tag{"TRUE"}=1;
next; next;
} elsif (/^\#\s*if\s+0/) {
# Dummy tag
push(@tag,"TRUE");
$tag{"TRUE"}=-1;
next;
} elsif (/^\#/) { } elsif (/^\#/) {
next; next;
} }
...@@ -251,6 +256,7 @@ sub do_defs ...@@ -251,6 +256,7 @@ sub do_defs
$funcs{"PEM_read_bio_${1}"} = 1; $funcs{"PEM_read_bio_${1}"} = 1;
$funcs{"PEM_write_bio_${1}"} = 1; $funcs{"PEM_write_bio_${1}"} = 1;
} elsif ( } elsif (
($tag{'TRUE'} != -1) &&
($tag{'FreeBSD'} != 1) && ($tag{'FreeBSD'} != 1) &&
($tag{'CONST_STRICT'} != 1) && ($tag{'CONST_STRICT'} != 1) &&
(($W32 && ($tag{'WIN16'} != 1)) || (($W32 && ($tag{'WIN16'} != 1)) ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册