aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-09-03 13:30:47 +0000
committerBodo Möller <bodo@openssl.org>1999-09-03 13:30:47 +0000
commit1e4149350c1e52c3087bdf072e04b71544de061d (patch)
tree674d8c8b7bf3403e0af3db97b4a8b9b3c7b3ba2c /util
parent8ce97163a2a3dea3d47e20f956032b50940422a2 (diff)
downloadopenssl-1e4149350c1e52c3087bdf072e04b71544de061d.zip
openssl-1e4149350c1e52c3087bdf072e04b71544de061d.tar.gz
openssl-1e4149350c1e52c3087bdf072e04b71544de061d.tar.bz2
Handle "#if 0" correctly (I hope)
Diffstat (limited to 'util')
-rwxr-xr-xutil/mkdef.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/mkdef.pl b/util/mkdef.pl
index 80384af..629982a 100755
--- a/util/mkdef.pl
+++ b/util/mkdef.pl
@@ -214,6 +214,11 @@ sub do_defs
push(@tag,"TRUE");
$tag{"TRUE"}=1;
next;
+ } elsif (/^\#\s*if\s+0/) {
+ # Dummy tag
+ push(@tag,"TRUE");
+ $tag{"TRUE"}=-1;
+ next;
} elsif (/^\#/) {
next;
}
@@ -251,6 +256,7 @@ sub do_defs
$funcs{"PEM_read_bio_${1}"} = 1;
$funcs{"PEM_write_bio_${1}"} = 1;
} elsif (
+ ($tag{'TRUE'} != -1) &&
($tag{'FreeBSD'} != 1) &&
($tag{'CONST_STRICT'} != 1) &&
(($W32 && ($tag{'WIN16'} != 1)) ||