aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-05-26 13:39:08 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2024-05-26 13:39:08 -0400
commit72e1b7be4031e2fd4d258fcf434ad049c0029201 (patch)
tree999ec971fd1f00db10aaf1cc272d1263670e9750
parentaeaac8d328b75911541be64d6f09d58fca294a08 (diff)
fix: Add c++ extern prototypes in noscrypt.h
-rw-r--r--include/noscrypt.h8
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 */