summaryrefslogtreecommitdiffstats
path: root/src/jv.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/jv.h')
-rw-r--r--src/jv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/jv.h b/src/jv.h
index 2cc63c79..083509ec 100644
--- a/src/jv.h
+++ b/src/jv.h
@@ -5,6 +5,10 @@
#include <stdint.h>
#include <stdio.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#if (defined(__GNUC__) && __GNUC__ >= 7) || \
(defined(__clang__) && __clang_major__ >= 10)
# define JQ_FALLTHROUGH __attribute__((fallthrough))
@@ -260,6 +264,9 @@ int jv_cmp(jv, jv);
jv jv_group(jv, jv);
jv jv_sort(jv, jv);
+#ifdef __cplusplus
+}
+#endif
#endif