summaryrefslogtreecommitdiffstats
path: root/wrap-json.h
diff options
context:
space:
mode:
Diffstat (limited to 'wrap-json.h')
-rw-r--r--wrap-json.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/wrap-json.h b/wrap-json.h
index cb2d0bf..f5e6996 100644
--- a/wrap-json.h
+++ b/wrap-json.h
@@ -18,6 +18,10 @@
#pragma once
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
#include <stdarg.h>
#include <json-c/json.h>
@@ -44,3 +48,6 @@ extern void wrap_json_object_for_all(struct json_object *object, void (*callback
extern void wrap_json_optobject_for_all(struct json_object *object, void (*callback)(void*,struct json_object*,const char*), void *closure);
extern void wrap_json_for_all(struct json_object *object, void (*callback)(void*,struct json_object*,const char*), void *closure);
+#ifdef __cplusplus
+ }
+#endif