From 72e1b7be4031e2fd4d258fcf434ad049c0029201 Mon Sep 17 00:00:00 2001 From: vnugent Date: Sun, 26 May 2024 13:39:08 -0400 Subject: fix: Add c++ extern prototypes in noscrypt.h --- include/noscrypt.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/noscrypt.h') diff --git a/include/noscrypt.h b/include/noscrypt.h index 8eadb15..036d0bd 100644 --- a/include/noscrypt.h +++ b/include/noscrypt.h @@ -29,6 +29,10 @@ #ifndef NOSCRYPT_H #define NOSCRYPT_H +#ifdef __cplusplus +extern "C" { +#endif + #include #include #include "platform.h" @@ -574,4 +578,8 @@ NC_EXPORT NCResult NCComputeMac( uint8_t hmacOut[NC_ENCRYPTION_MAC_SIZE] ); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif /* !NOSCRYPT_H */ -- cgit