aboutsummaryrefslogtreecommitdiff
path: root/libcmix-crypto
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-08-29 15:33:00 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-08-29 15:33:00 +0200
commit4dea13e3cd25b6de602ffb53be5e60005b6ba10b (patch)
tree35207ab9ef49540dabf44ce935edbed29dce4a36 /libcmix-crypto
parent14f06109fe736d06d30f99a4acc0bd1f233ec2af (diff)
downloadcmix-4dea13e3cd25b6de602ffb53be5e60005b6ba10b.tar.gz
cmix-4dea13e3cd25b6de602ffb53be5e60005b6ba10b.tar.bz2
cmix-4dea13e3cd25b6de602ffb53be5e60005b6ba10b.zip
Cleaned up cmix libraries, added extern "C" linkage when included from c++
Diffstat (limited to 'libcmix-crypto')
-rw-r--r--libcmix-crypto/message.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libcmix-crypto/message.h b/libcmix-crypto/message.h
index 98cdb9a..2c483e9 100644
--- a/libcmix-crypto/message.h
+++ b/libcmix-crypto/message.h
@@ -1,3 +1,8 @@
+#pragma once
+
+#ifdef __cplusplus
+extern "C" {
+#endif
#include <stddef.h>
#include <stdlib.h>
@@ -83,3 +88,7 @@ struct CmixBufferImpl get_cmix_curve25519_buffer_implementation() {
};
}
*/
+
+#ifdef __cplusplus
+} // extern "C"
+#endif