VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Crypto/misc.h')
-rw-r--r--src/Crypto/misc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Crypto/misc.h b/src/Crypto/misc.h
index 31fa1187..47d0288a 100644
--- a/src/Crypto/misc.h
+++ b/src/Crypto/misc.h
@@ -12,6 +12,10 @@
#include "Tcdefs.h"
#endif // !defined(_UEFI)
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#if defined(_MSC_VER) && !defined(_UEFI)
#if _MSC_VER >= 1400
#if !defined(TC_WINDOWS_DRIVER) && !defined(_UEFI)
@@ -175,4 +179,8 @@ VC_INLINE void CorrectEndianess(uint64 *out, const uint64 *in, size_t byteCount)
#define IsAligned16(p) IsAlignedOn(p, GetAlignmentOf(uint64))
+#ifdef __cplusplus
+}
+#endif
+
#endif