summaryrefslogtreecommitdiff
path: root/sexp.h
diff options
context:
space:
mode:
Diffstat (limited to 'sexp.h')
-rw-r--r--sexp.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sexp.h b/sexp.h
index e8547592..d8b39bf5 100644
--- a/sexp.h
+++ b/sexp.h
@@ -29,6 +29,10 @@
#include <stdarg.h>
#include "nettle-types.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Name mangling */
#define sexp_iterator_first nettle_sexp_iterator_first
#define sexp_transport_iterator_first nettle_sexp_transport_iterator_first
@@ -204,4 +208,8 @@ sexp_token_chars[0x80];
#define TOKEN_CHAR(c) ((c) < 0x80 && sexp_token_chars[(c)])
+#ifdef __cplusplus
+}
+#endif
+
#endif /* NETTLE_SEXP_H_INCLUDED */