From 05e97f1d4f940c765e5c93771fe20820acca4438 Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Wed, 16 Sep 2015 21:53:58 +0200 Subject: [PATCH] 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 --- include/openssl/asn1t.h | 3 +++ 1 file changed, 3 insertions(+) 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; \ -- 2.34.1