From: Alessandro Ghedini Date: Wed, 16 Sep 2015 19:53:58 +0000 (+0200) Subject: Fix build on mingw X-Git-Tag: OpenSSL_1_1_0-pre1~616 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=05e97f1d4f940c765e5c93771fe20820acca4438;p=oweals%2Fopenssl.git Fix build on mingw When OPENSSL_EXPORT_VAR_AS_FUNCTION is defined, the static_ASN1_ITEM_start macro doesn't exist so the build fails. This problem was introduced in commit df2ee0e. Reviewed-by: Stephen Henson Reviewed-by: Matt Caswell --- diff --git a/include/openssl/asn1t.h b/include/openssl/asn1t.h index 6467e4a645..4a4e1ef255 100644 --- a/include/openssl/asn1t.h +++ b/include/openssl/asn1t.h @@ -102,6 +102,9 @@ extern "C" { { \ static const ASN1_ITEM local_it = { +# define static_ASN1_ITEM_start(itname) \ + ASN1_ITEM_start(itname) + # define ASN1_ITEM_end(itname) \ }; \ return &local_it; \