From 2780ac962ec75f548acb616dd810515e528ac0b1 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 17 Aug 2016 00:06:57 +0200 Subject: Linux: fix various compilation issues under Linux. --- src/Crypto/Streebog.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Crypto/Streebog.h') diff --git a/src/Crypto/Streebog.h b/src/Crypto/Streebog.h index 47c792c1..3cb8d8ed 100644 --- a/src/Crypto/Streebog.h +++ b/src/Crypto/Streebog.h @@ -12,6 +12,10 @@ #include "Common/Tcdefs.h" #include "config.h" +#ifdef __cplusplus +extern "C" { +#endif + #define ALIGN(a) CRYPTOPP_ALIGN_DATA(a) typedef ALIGN(16) struct _STREEBOG_CTX @@ -30,4 +34,8 @@ void STREEBOG_init256(STREEBOG_CTX *ctx); void STREEBOG_add(STREEBOG_CTX *ctx, const byte *msg, size_t len); void STREEBOG_finalize(STREEBOG_CTX *ctx, byte *out); +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.2.3