mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-30 06:45:18 +01:00
Move the deprecated stuff to the end
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
9be3600440
commit
fcbc9cf883
1 changed files with 9 additions and 8 deletions
|
@ -5,19 +5,20 @@
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
/* GStaticMutex is deprecated starting with glib 2.32 */
|
/* GStaticMutex is deprecated starting with glib 2.32 and got replaced with
|
||||||
#if !GLIB_CHECK_VERSION(2, 31, 0)
|
* GMutex */
|
||||||
#define mutex GStaticMutex
|
#if GLIB_CHECK_VERSION(2, 32, 0)
|
||||||
#define mutex_init(m) g_static_mutex_init((m))
|
|
||||||
#define mutex_lock(m) g_static_mutex_lock((m))
|
|
||||||
#define mutex_unlock(m) g_static_mutex_unlock((m))
|
|
||||||
#define mutex_free(m) g_static_mutex_free((m))
|
|
||||||
#else
|
|
||||||
#define mutex GMutex
|
#define mutex GMutex
|
||||||
#define mutex_init(m) g_mutex_init((m))
|
#define mutex_init(m) g_mutex_init((m))
|
||||||
#define mutex_lock(m) g_mutex_lock((m))
|
#define mutex_lock(m) g_mutex_lock((m))
|
||||||
#define mutex_unlock(m) g_mutex_unlock((m))
|
#define mutex_unlock(m) g_mutex_unlock((m))
|
||||||
#define mutex_free(m) g_mutex_clear((m))
|
#define mutex_free(m) g_mutex_clear((m))
|
||||||
|
#else
|
||||||
|
#define mutex GStaticMutex
|
||||||
|
#define mutex_init(m) g_static_mutex_init((m))
|
||||||
|
#define mutex_lock(m) g_static_mutex_lock((m))
|
||||||
|
#define mutex_unlock(m) g_static_mutex_unlock((m))
|
||||||
|
#define mutex_free(m) g_static_mutex_free((m))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue