Add missing extern "C" guard to new headers
diff --git a/include/mbedtls/aead_chacha20_poly1305.h b/include/mbedtls/aead_chacha20_poly1305.h
index 6f7ab6f..21c3158 100644
--- a/include/mbedtls/aead_chacha20_poly1305.h
+++ b/include/mbedtls/aead_chacha20_poly1305.h
@@ -32,6 +32,10 @@
#define MBEDTLS_ERR_AEAD_CHACHA20_POLY1305_BAD_INPUT_DATA -0x00047 /**< Invalid input parameter(s). */
#define MBEDTLS_ERR_AEAD_CHACHA20_POLY1305_BAD_STATE -0x00049 /**< The requested operation is not permitted in the current state */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef enum
{
MBEDTLS_AEAD_CHACHA20_POLY1305_ENCRYPT,
@@ -227,4 +231,8 @@
*/
int mbedtls_aead_chacha20_poly1305_self_test( int verbose );
+#ifdef __cplusplus
+}
+#endif
+
#endif /* MBEDTLS_AEAD_CHACHA20_POLY1305_H */