[gnome-software/wip/hughsie/fwupd_dep_ver: 3/3] fwupd: Fix compile with old versions of fwupd
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/hughsie/fwupd_dep_ver: 3/3] fwupd: Fix compile with old versions of fwupd
- Date: Mon, 18 Nov 2019 13:39:39 +0000 (UTC)
commit af2cf058259501c01adc1f7838e7ce4ac8a52785
Author: Richard Hughes <richard hughsie com>
Date: Mon Nov 18 13:38:09 2019 +0000
fwupd: Fix compile with old versions of fwupd
Alternate to https://gitlab.gnome.org/GNOME/gnome-software/merge_requests/360
plugins/fwupd/gs-fwupd-app.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/plugins/fwupd/gs-fwupd-app.c b/plugins/fwupd/gs-fwupd-app.c
index 78d123b6..ae07e11a 100644
--- a/plugins/fwupd/gs-fwupd-app.c
+++ b/plugins/fwupd/gs-fwupd-app.c
@@ -124,6 +124,7 @@ static gchar *
gs_fwupd_release_get_name (FwupdRelease *release)
{
const gchar *name = fwupd_release_get_name (release);
+#if FWUPD_CHECK_VERSION(1,2,7)
GPtrArray *cats = fwupd_release_get_categories (release);
for (guint i = 0; i < cats->len; i++) {
@@ -171,6 +172,7 @@ gs_fwupd_release_get_name (FwupdRelease *release)
return g_strdup_printf (_("%s Thunderbolt Controller"), name);
}
}
+#endif
/* default fallback */
return g_strdup (name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]