summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--json-glib/json-array.c2
-rw-r--r--json-glib/json-generator.c2
-rw-r--r--json-glib/json-gobject.c2
-rw-r--r--json-glib/json-node.c3
-rw-r--r--json-glib/json-object.c2
5 files changed, 11 insertions, 0 deletions
diff --git a/json-glib/json-array.c b/json-glib/json-array.c
index d699bed..4141b47 100644
--- a/json-glib/json-array.c
+++ b/json-glib/json-array.c
@@ -17,7 +17,9 @@
* Emmanuele Bassi <ebassi@openedhand.com>
*/
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include "json-types.h"
diff --git a/json-glib/json-generator.c b/json-glib/json-generator.c
index 30fb5b1..6b18bd9 100644
--- a/json-glib/json-generator.c
+++ b/json-glib/json-generator.c
@@ -25,7 +25,9 @@
* put it into a buffer or a file.
*/
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include <stdlib.h>
#include <string.h>
diff --git a/json-glib/json-gobject.c b/json-glib/json-gobject.c
index 548a9ce..0526283 100644
--- a/json-glib/json-gobject.c
+++ b/json-glib/json-gobject.c
@@ -32,7 +32,9 @@
* and its virtual functions.
*/
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include <string.h>
#include <stdlib.h>
diff --git a/json-glib/json-node.c b/json-glib/json-node.c
index faf1943..e147ad4 100644
--- a/json-glib/json-node.c
+++ b/json-glib/json-node.c
@@ -17,7 +17,9 @@
* Emmanuele Bassi <ebassi@openedhand.com>
*/
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include <glib.h>
@@ -510,6 +512,7 @@ json_node_get_string (JsonNode *node)
gchar *
json_node_dup_string (JsonNode *node)
{
+ g_return_val_if_fail (node != NULL, NULL);
g_return_val_if_fail (JSON_NODE_TYPE (node) == JSON_NODE_VALUE, NULL);
if (G_VALUE_TYPE (&(node->data.value)) == G_TYPE_STRING)
diff --git a/json-glib/json-object.c b/json-glib/json-object.c
index e0b4181..e75ab46 100644
--- a/json-glib/json-object.c
+++ b/json-glib/json-object.c
@@ -17,7 +17,9 @@
* Emmanuele Bassi <ebassi@openedhand.com>
*/
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include <glib.h>