summaryrefslogtreecommitdiff
path: root/ctr.h
diff options
context:
space:
mode:
Diffstat (limited to 'ctr.h')
-rw-r--r--ctr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ctr.h b/ctr.h
index 95c16615..80abb6e8 100644
--- a/ctr.h
+++ b/ctr.h
@@ -29,6 +29,10 @@
#include "nettle-types.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Name mangling */
#define ctr_crypt nettle_ctr_crypt
@@ -51,4 +55,8 @@ memcpy((ctx)->ctr, (data), sizeof((ctx)->ctr))
sizeof((self)->ctr), (self)->ctr, \
(length), (dst), (src)))
+#ifdef __cplusplus
+}
+#endif
+
#endif /* NETTLE_CTR_H_INCLUDED */