From 9f1e033d31ca9f41aa4fb1fc465b97d537eda6a5 Mon Sep 17 00:00:00 2001 From: Burt P Date: Sun, 4 Jun 2017 22:06:45 -0500 Subject: Fallback g_strv_contains() imp when using glib<2.44 Also, some stray whitespace removed. Signed-off-by: Burt P --- includes/hardinfo.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'includes/hardinfo.h') diff --git a/includes/hardinfo.h b/includes/hardinfo.h index 20d87ef8..70329ac7 100644 --- a/includes/hardinfo.h +++ b/includes/hardinfo.h @@ -46,9 +46,9 @@ struct _ProgramParameters { gboolean list_modules; gboolean autoload_deps; gboolean run_xmlrpc_server; - + gint report_format; - + gchar **use_modules; gchar *run_benchmark; gchar *path_lib; @@ -161,4 +161,10 @@ void moreinfo_clear(void); gchar *moreinfo_lookup_with_prefix(gchar *prefix, gchar *key); gchar *moreinfo_lookup(gchar *key); +#if !GLIB_CHECK_VERSION(2,44,0) + /* g_strv_contains() requires glib>2.44 + * fallback for older versions in hardinfo/util.c */ +gboolean g_strv_contains(const gchar * const * strv, const gchar *str); +#endif + #endif /* __HARDINFO_H__ */ -- cgit v1.2.3