Commit 074acf9f authored by Alexander Schwinn's avatar Alexander Schwinn
Browse files

Remove GLIB_CHECK_VERSION IFDEFs which are obsolete after glib bump

Current glib minimum is 2.50.0
parent 6e6dbd1a
Pipeline #4943 passed with stages
in 2 minutes and 16 seconds
......@@ -267,18 +267,6 @@ main (int argc,
/* set the application name. Translators: Don't translate "Tumbler". */
g_set_application_name (_("Tumbler Thumbnailing Service"));
#if !GLIB_CHECK_VERSION (2, 36, 0)
/* initialize the GLib type system */
g_type_init ();
#endif
#if !GLIB_CHECK_VERSION (2, 32, 0)
/* initialize threading system */
if (!g_thread_supported ())
g_thread_init (NULL);
#endif
connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error);
if (error != NULL)
......
......@@ -55,19 +55,11 @@ G_BEGIN_DECLS
} \
}G_STMT_END
#if GLIB_CHECK_VERSION (2, 32, 0)
#define TUMBLER_MUTEX(mtx) GMutex mtx
#define tumbler_mutex_free(mtx) g_mutex_clear (&(mtx))
#define tumbler_mutex_lock(mtx) g_mutex_lock (&(mtx))
#define tumbler_mutex_unlock(mtx) g_mutex_unlock (&(mtx))
#define tumbler_mutex_create(mtx) g_mutex_init (&(mtx))
#else
#define TUMBLER_MUTEX(mtx) GMutex *mtx
#define tumbler_mutex_free(mtx) g_mutex_free (mtx)
#define tumbler_mutex_lock(mtx) g_mutex_lock (mtx)
#define tumbler_mutex_unlock(mtx) g_mutex_unlock (mtx)
#define tumbler_mutex_create(mtx) (mtx) = g_mutex_new ()
#endif
G_END_DECLS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment