mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-02 17:12:15 +00:00
fix build against glib<2.30
This commit is contained in:
parent
203b629303
commit
16f2005d68
1 changed files with 4 additions and 1 deletions
|
@ -265,7 +265,6 @@ typedef GStaticPrivate fluid_private_t;
|
||||||
/* Atomic operations */
|
/* Atomic operations */
|
||||||
|
|
||||||
#define fluid_atomic_int_inc(_pi) g_atomic_int_inc(_pi)
|
#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_get(_pi) g_atomic_int_get(_pi)
|
||||||
#define fluid_atomic_int_set(_pi, _val) g_atomic_int_set(_pi, _val)
|
#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)
|
#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)
|
#if GLIB_MAJOR_VERSION > 2 || (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION >= 30)
|
||||||
#define fluid_atomic_int_exchange_and_add(_pi, _add) \
|
#define fluid_atomic_int_exchange_and_add(_pi, _add) \
|
||||||
g_atomic_int_add(_pi, _add)
|
g_atomic_int_add(_pi, _add)
|
||||||
|
#define fluid_atomic_int_add(_pi, _add) \
|
||||||
|
g_atomic_int_add(_pi, _add)
|
||||||
#else
|
#else
|
||||||
#define fluid_atomic_int_exchange_and_add(_pi, _add) \
|
#define fluid_atomic_int_exchange_and_add(_pi, _add) \
|
||||||
g_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
|
#endif
|
||||||
|
|
||||||
#define fluid_atomic_pointer_get(_pp) g_atomic_pointer_get(_pp)
|
#define fluid_atomic_pointer_get(_pp) g_atomic_pointer_get(_pp)
|
||||||
|
|
Loading…
Reference in a new issue