From: Bodo Möller Date: Fri, 3 Sep 1999 13:30:47 +0000 (+0000) Subject: Handle "#if 0" correctly (I hope) X-Git-Tag: OpenSSL_0_9_5beta1~554 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1e4149350c1e52c3087bdf072e04b71544de061d;p=oweals%2Fopenssl.git Handle "#if 0" correctly (I hope) --- 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)) ||