diff --git a/c/blake3.h b/c/blake3.h index a7e369b..472a6b0 100644 --- a/c/blake3.h +++ b/c/blake3.h @@ -4,6 +4,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + #define BLAKE3_KEY_LEN 32 #define BLAKE3_OUT_LEN 32 #define BLAKE3_BLOCK_LEN 64 @@ -41,4 +45,8 @@ void blake3_hasher_update(blake3_hasher *self, const void *input, void blake3_hasher_finalize(const blake3_hasher *self, uint8_t *out, size_t out_len); +#ifdef __cplusplus +} +#endif + #endif /* BLAKE3_H */