diff --git a/meson.build b/meson.build index 61f34ec..78ebe84 100644 --- a/meson.build +++ b/meson.build @@ -145,7 +145,7 @@ python3_available_modules = [] foreach module, required : python3_test_modules if required and run_command(python3, '-c', 'import @0@'.format(module)).returncode() != 0 - warning('Python3 module \'' + module + '\' required by test suite not found') + error('Python3 module \'' + module + '\' required by test suite not found') endif endforeach diff --git a/src/fprintd.h b/src/fprintd.h index 63a742e..4075bc2 100644 --- a/src/fprintd.h +++ b/src/fprintd.h @@ -91,18 +91,3 @@ FprintDevice *fprint_device_new (FpDevice *dev); guint32 _fprint_device_get_id (FprintDevice *rdev); /* Print */ /* TODO */ - - -/* Some compatibility definitions for older GLib. Copied from from libfprint. */ -#if !GLIB_CHECK_VERSION (2, 57, 0) -G_DEFINE_AUTOPTR_CLEANUP_FUNC (GTypeClass, g_type_class_unref); -G_DEFINE_AUTOPTR_CLEANUP_FUNC (GEnumClass, g_type_class_unref); -G_DEFINE_AUTOPTR_CLEANUP_FUNC (GFlagsClass, g_type_class_unref); -G_DEFINE_AUTOPTR_CLEANUP_FUNC (GParamSpec, g_param_spec_unref); -#else -/* Re-define G_SOURCE_FUNC as we are technically not allowed to use it with - * the version we depend on currently. */ -#undef G_SOURCE_FUNC -#endif - -#define G_SOURCE_FUNC(f) ((GSourceFunc) (void (*)(void))(f))