diff --git a/chacha20.h b/chacha20.h index 42853ad..83e3012 100644 --- a/chacha20.h +++ b/chacha20.h @@ -86,6 +86,10 @@ #ifndef SLOWCRYPT_CHACHA20_H #define SLOWCRYPT_CHACHA20_H +#ifdef __cplusplus +extern "C" { +#endif + #ifndef SLOWCRYPT_CHACHA20_UINT32 #include #define SLOWCRYPT_CHACHA20_UINT32 uint32_t @@ -286,4 +290,8 @@ SLOWCRYPT_CHACHA20_FUNC void slowcrypt_chacha20_block( #endif +#ifdef __cplusplus +} +#endif + #endif