diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/noscrypt.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 <stdint.h> #include <stddef.h> #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 */ |