Moved __cplusplus extern statement to include struct definitions as well.
diff --git a/include/polarssl/xtea.h b/include/polarssl/xtea.h
index 207e188..4b435ae 100644
--- a/include/polarssl/xtea.h
+++ b/include/polarssl/xtea.h
@@ -47,6 +47,10 @@
 // Regular implementation
 //
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /**
  * \brief          XTEA context structure
  */
@@ -56,10 +60,6 @@
 }
 xtea_context;
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 /**
  * \brief          XTEA key schedule
  *