mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-11 21:31:18 +00:00
fix build against glib<2.30
This commit is contained in:
parent
e3232e377e
commit
39ccd5f77d
1 changed files with 4 additions and 1 deletions
|
@ -265,7 +265,6 @@ typedef GStaticPrivate fluid_private_t;
|
|||
/* Atomic operations */
|
||||
|
||||
#define fluid_atomic_int_inc(_pi) g_atomic_int_inc(_pi)
|
||||
#define fluid_atomic_int_add(_pi, _val) g_atomic_int_add(_pi, _val)
|
||||
#define fluid_atomic_int_get(_pi) g_atomic_int_get(_pi)
|
||||
#define fluid_atomic_int_set(_pi, _val) g_atomic_int_set(_pi, _val)
|
||||
#define fluid_atomic_int_dec_and_test(_pi) g_atomic_int_dec_and_test(_pi)
|
||||
|
@ -275,9 +274,13 @@ typedef GStaticPrivate fluid_private_t;
|
|||
#if GLIB_MAJOR_VERSION > 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 30)
|
||||
#define fluid_atomic_int_exchange_and_add(_pi, _add) \
|
||||
g_atomic_int_add(_pi, _add)
|
||||
#define fluid_atomic_int_add(_pi, _add) \
|
||||
g_atomic_int_add(_pi, _add)
|
||||
#else
|
||||
#define fluid_atomic_int_exchange_and_add(_pi, _add) \
|
||||
g_atomic_int_exchange_and_add(_pi, _add)
|
||||
#define fluid_atomic_int_add(_pi, _add) \
|
||||
g_atomic_int_exchange_and_add(_pi, _add)
|
||||
#endif
|
||||
|
||||
#define fluid_atomic_pointer_get(_pp) g_atomic_pointer_get(_pp)
|
||||
|
|
Loading…
Reference in a new issue