From a226e066293b9d5861fa56ca8f6c8fd2b8a38a83 Mon Sep 17 00:00:00 2001 From: h5p9sl <21267024+h5p9sl@users.noreply.github.com> Date: Thu, 4 Jul 2019 20:27:00 -0600 Subject: [PATCH] Add C++ compatibility --- hmac_sha256.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hmac_sha256.h b/hmac_sha256.h index 9613c8c..e33e0b5 100644 --- a/hmac_sha256.h +++ b/hmac_sha256.h @@ -6,6 +6,10 @@ #ifndef _HMAC_SHA256_H_ #define _HMAC_SHA256_H_ +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + #include void hmac_sha256( @@ -17,5 +21,9 @@ void hmac_sha256( uint8_t* out, const unsigned outlen ); -#endif +#ifdef __cplusplus +} +#endif // __cplusplus + +#endif // _HMAC_SHA256_H_