summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-yaml.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-09-28 11:01:48 +0100
committerRichard Hughes <richard@hughsie.com>2016-09-28 11:01:48 +0100
commitb1fae406585f24b230f7a524052a8463fa17784a (patch)
treee4393b279b486ef80188f855e30ccf589a73fa03 /libappstream-glib/as-yaml.c
parentb4312b8485db5cad8b58f8c517c379f41a673fb4 (diff)
downloadappstream-glib-b1fae406585f24b230f7a524052a8463fa17784a.tar.gz
trivial: Fix a couple of warnings with -Wundef
Diffstat (limited to 'libappstream-glib/as-yaml.c')
-rw-r--r--libappstream-glib/as-yaml.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libappstream-glib/as-yaml.c b/libappstream-glib/as-yaml.c
index 1a5ba53..3b03fc3 100644
--- a/libappstream-glib/as-yaml.c
+++ b/libappstream-glib/as-yaml.c
@@ -178,7 +178,7 @@ as_yaml_to_string (AsNode *node)
return str;
}
-#if AS_BUILD_DEP11
+#ifdef AS_BUILD_DEP11
static AsYamlNodeKind
as_yaml_node_get_kind (AsNode *node)
{
@@ -395,7 +395,7 @@ AsNode *
as_yaml_from_data (const gchar *data, gssize data_len, GError **error)
{
g_autoptr(AsYaml) node = NULL;
-#if AS_BUILD_DEP11
+#ifdef AS_BUILD_DEP11
yaml_parser_t parser;
g_auto(AsYamlParser) parser_cleanup = NULL;
@@ -420,7 +420,7 @@ as_yaml_from_data (const gchar *data, gssize data_len, GError **error)
return g_steal_pointer (&node);
}
-#if AS_BUILD_DEP11
+#ifdef AS_BUILD_DEP11
static int
as_yaml_read_handler_cb (void *data,
unsigned char *buffer,
@@ -442,7 +442,7 @@ AsNode *
as_yaml_from_file (GFile *file, GCancellable *cancellable, GError **error)
{
g_autoptr(AsYaml) node = NULL;
-#if AS_BUILD_DEP11
+#ifdef AS_BUILD_DEP11
const gchar *content_type = NULL;
yaml_parser_t parser;
g_auto(AsYamlParser) parser_cleanup = NULL;