summaryrefslogtreecommitdiff
path: root/include/parserutils/functypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/parserutils/functypes.h')
-rw-r--r--include/parserutils/functypes.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/parserutils/functypes.h b/include/parserutils/functypes.h
index 703a329..7ff626d 100644
--- a/include/parserutils/functypes.h
+++ b/include/parserutils/functypes.h
@@ -8,6 +8,11 @@
#ifndef parserutils_functypes_h_
#define parserutils_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 parserutils */
typedef void *(*parserutils_alloc)(void *ptr, size_t size, void *pw);
+#ifdef __cplusplus
+}
+#endif
+
#endif