mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-01-27 06:40:24 +01:00
Fix build warning with GLIB 2.76
g_module_load() is smart enough now to deduce the module filename all by itself. g_module_build_path() was deprecated in GLIB 2.76. Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
This commit is contained in:
parent
87c85fc81b
commit
150da30cc7
1 changed files with 4 additions and 0 deletions
|
|
@ -59,7 +59,11 @@ load_storage_module (const char *module_name)
|
|||
GModule *module;
|
||||
g_autofree char *filename = NULL;
|
||||
|
||||
#if !GLIB_CHECK_VERSION (2, 76, 0)
|
||||
filename = g_module_build_path (PLUGINDIR, module_name);
|
||||
#else
|
||||
filename = g_build_filename (PLUGINDIR, module_name, NULL);
|
||||
#endif
|
||||
module = g_module_open (filename, 0);
|
||||
if (module == NULL)
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue