aboutsummaryrefslogtreecommitdiff
path: root/include/libsec.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libsec.h')
-rw-r--r--include/libsec.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/libsec.h b/include/libsec.h
index 17b2b651..e65b7f97 100644
--- a/include/libsec.h
+++ b/include/libsec.h
@@ -1,3 +1,8 @@
+#ifndef _LIBSEC_H_
+#define _LIBSEC_H_ 1
+#if defined(__cplusplus)
+extern "C" {
+#endif
/*
#pragma lib "libsec.a"
#pragma src "/sys/src/libsec"
@@ -338,3 +343,8 @@ extern int okThumbprint(uchar *sha1, Thumbprint *ok);
// readcert.c
extern uchar *readcert(char *filename, int *pcertlen);
+
+#if defined(__cplusplus)
+}
+#endif
+#endif