Moved __cplusplus extern statement to include struct definitions as well.
diff --git a/include/polarssl/ssl.h b/include/polarssl/ssl.h
index f95219c..1bc5893 100644
--- a/include/polarssl/ssl.h
+++ b/include/polarssl/ssl.h
@@ -254,6 +254,10 @@
#define POLARSSL_PREMASTER_SIZE POLARSSL_MPI_MAX_SIZE
#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Generic function pointers for allowing external RSA private key
* implementations.
@@ -547,10 +551,6 @@
char peer_verify_data[36]; /*!< previous handshake verify data */
};
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#if defined(POLARSSL_SSL_HW_RECORD_ACCEL)
#define SSL_CHANNEL_OUTBOUND 0