diff options
-rw-r--r-- | libappstream-glib/as-self-test.c | 8 | ||||
-rw-r--r-- | libappstream-glib/as-yaml.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/libappstream-glib/as-self-test.c b/libappstream-glib/as-self-test.c index 5aff325..e2db1d0 100644 --- a/libappstream-glib/as-self-test.c +++ b/libappstream-glib/as-self-test.c @@ -4341,7 +4341,7 @@ as_test_store_metadata_index_func (void) static void as_test_yaml_broken_func (void) { -#if AS_BUILD_DEP11 +#ifdef AS_BUILD_DEP11 g_autoptr(AsYaml) node = NULL; g_autoptr(GError) error1 = NULL; g_autoptr(GError) error2 = NULL; @@ -4366,7 +4366,7 @@ as_test_yaml_broken_func (void) static void as_test_yaml_func (void) { -#if AS_BUILD_DEP11 +#ifdef AS_BUILD_DEP11 AsYaml *node; GError *error = NULL; GString *str; @@ -4484,7 +4484,7 @@ as_test_yaml_func (void) static void as_test_store_yaml_func (void) { -#if AS_BUILD_DEP11 +#ifdef AS_BUILD_DEP11 AsApp *app; GError *error = NULL; gboolean ret; @@ -4552,7 +4552,7 @@ as_test_store_yaml_func (void) static void as_test_store_speed_yaml_func (void) { -#if AS_BUILD_DEP11 +#ifdef AS_BUILD_DEP11 GError *error = NULL; gboolean ret; guint i; 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; |