Moved __cplusplus extern statement to include struct definitions as well.
diff --git a/include/polarssl/des.h b/include/polarssl/des.h
index d78b568..0dedf62 100644
--- a/include/polarssl/des.h
+++ b/include/polarssl/des.h
@@ -49,6 +49,10 @@
 // Regular implementation
 //
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  * \brief          DES context structure
  */
@@ -69,10 +73,6 @@
 }
 des3_context;
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 /**
  * \brief          Set key parity on the given key to odd.
  *