aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>2016-03-17 15:39:13 +0100
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>2016-03-17 15:39:13 +0100
commit8eb643b5ae40b64b64f0c82f915ab278bf7fed18 (patch)
tree969aa190b5cb76e5f727fe16414e5f6138f4f8b8
parentfb422bd770a2da475498a8a774d94a72b9d2e440 (diff)
downloadlibsmaf-8eb643b5ae40b64b64f0c82f915ab278bf7fed18.tar.gz
fix C++ compilation issue
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
-rw-r--r--lib/libsmaf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libsmaf.h b/lib/libsmaf.h
index c3247f7..8cde1b3 100644
--- a/lib/libsmaf.h
+++ b/lib/libsmaf.h
@@ -28,6 +28,10 @@
/* For close() */
#include <unistd.h>
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
int smaf_open();
void smaf_close();
@@ -35,4 +39,8 @@ int smaf_create_buffer(unsigned int length, unsigned int flags, char *name, int
int smaf_set_secure(int fd, int secure);
int smaf_get_secure(int fd);
+#if defined(__cplusplus)
+}
+#endif
+
#endif