summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2015-09-16 21:53:58 +0200
committerMatt Caswell <matt@openssl.org>2015-09-16 23:12:22 +0100
commit05e97f1d4f940c765e5c93771fe20820acca4438 (patch)
treec782600d0002be929a3d7499603e69a2a07efb6b /include
parentfae11ec714ac8e71d95e824d7102ab5b2ec2e256 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/openssl/asn1t.h3
1 files changed, 3 insertions, 0 deletions
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; \