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 <steve@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
Alessandro Ghedini 2015-09-16 21:53:58 +02:00 committed by Matt Caswell
parent fae11ec714
commit 05e97f1d4f

View File

@ -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; \