summaryrefslogtreecommitdiff
path: root/include/libcss/functypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libcss/functypes.h')
-rw-r--r--include/libcss/functypes.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libcss/functypes.h b/include/libcss/functypes.h
index c091f0b..2acd44a 100644
--- a/include/libcss/functypes.h
+++ b/include/libcss/functypes.h
@@ -8,6 +8,11 @@
#ifndef libcss_functypes_h_
#define libcss_functypes_h_
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
@@ -17,5 +22,9 @@
/* Type of allocation function for libcss */
typedef void *(*css_allocator_fn)(void *ptr, size_t size, void *pw);
+#ifdef __cplusplus
+}
+#endif
+
#endif