aboutsummaryrefslogtreecommitdiff
path: root/config.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index 9f15b52..43b5f30 100644
--- a/config.h.in
+++ b/config.h.in
@@ -50,5 +50,12 @@
#endif
#endif /* ! HAVE_SANE___RESTRICT */
+/* We have to remove nodes first due to a bug in json-glib. */
+#define json_object_set_member(object, name, node) \
+ G_STMT_START { \
+ json_object_remove_member ((object), (name)); \
+ json_object_set_member ((object), (name), (node)); \
+ } G_STMT_END
+
#endif /* __CONFIG_H__ */