Moved __cplusplus extern statement to include struct definitions as well.
diff --git a/include/polarssl/dhm.h b/include/polarssl/dhm.h
index 48d9268..da787c3 100644
--- a/include/polarssl/dhm.h
+++ b/include/polarssl/dhm.h
@@ -3,7 +3,7 @@
*
* \brief Diffie-Hellman-Merkle key exchange
*
- * Copyright (C) 2006-2010, Brainspark B.V.
+ * Copyright (C) 2006-2013, Brainspark B.V.
*
* This file is part of PolarSSL (http://www.polarssl.org)
* Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
@@ -130,6 +130,10 @@
"EDFE72FE9B6AA4BD7B5A0F1C71CFFF4C19C418E1F6EC0179"\
"81BC087F2A7065B384B890D3191F2BFA"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* \brief DHM context structure
*/
@@ -146,10 +150,6 @@
}
dhm_context;
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/**
* \brief Parse the ServerKeyExchange parameters
*