fix build against glib<2.30

This commit is contained in:
derselbst 2017-09-06 09:36:42 +02:00
parent 203b629303
commit 16f2005d68

View file

@ -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)