diff options
author | Burt P <pburt0@gmail.com> | 2017-06-04 22:06:45 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2017-06-05 09:30:40 -0700 |
commit | 9f1e033d31ca9f41aa4fb1fc465b97d537eda6a5 (patch) | |
tree | 46cbf5683fe8c8cd8bb0af544bdf587e441abbbc /includes/hardinfo.h | |
parent | eaa734a6ef4ebf4be6c3dcaffefdfdf43d942b22 (diff) |
Fallback g_strv_contains() imp when using glib<2.44
Also, some stray whitespace removed.
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes/hardinfo.h')
-rw-r--r-- | includes/hardinfo.h | 10 |
1 files changed, 8 insertions, 2 deletions
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__ */ |