summaryrefslogtreecommitdiff
path: root/main/openssl/crypto/stack/safestack.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/openssl/crypto/stack/safestack.h')
-rw-r--r--main/openssl/crypto/stack/safestack.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/main/openssl/crypto/stack/safestack.h b/main/openssl/crypto/stack/safestack.h
index ea3aa0d8..bc194cb2 100644
--- a/main/openssl/crypto/stack/safestack.h
+++ b/main/openssl/crypto/stack/safestack.h
@@ -57,6 +57,10 @@
#include <openssl/stack.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifndef CHECKED_PTR_OF
#define CHECKED_PTR_OF(type, p) \
((void*) (1 ? p : (type*)0))
@@ -2660,4 +2664,8 @@ DECLARE_SPECIAL_STACK_OF(OPENSSL_BLOCK, void)
#define lh_SSL_SESSION_free(lh) LHM_lh_free(SSL_SESSION,lh)
/* End of util/mkstack.pl block, you may now edit :-) */
+
+#ifdef __cplusplus
+}
+#endif
#endif /* !defined HEADER_SAFESTACK_H */