diff options
author | Bodo Möller <bodo@openssl.org> | 1999-09-03 13:30:47 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-09-03 13:30:47 +0000 |
commit | 1e4149350c1e52c3087bdf072e04b71544de061d (patch) | |
tree | 674d8c8b7bf3403e0af3db97b4a8b9b3c7b3ba2c | |
parent | 8ce97163a2a3dea3d47e20f956032b50940422a2 (diff) | |
download | openssl-1e4149350c1e52c3087bdf072e04b71544de061d.tar.gz |
Handle "#if 0" correctly (I hope)
-rwxr-xr-x | util/mkdef.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/mkdef.pl b/util/mkdef.pl index 80384af325..629982a384 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)) || |