From 39ccd5f77d7f0c5ccbb1f28e21fa1f252aafa116 Mon Sep 17 00:00:00 2001 From: derselbst Date: Wed, 6 Sep 2017 09:36:42 +0200 Subject: [PATCH] fix build against glib<2.30 --- src/utils/fluid_sys.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/fluid_sys.h b/src/utils/fluid_sys.h index 06ebcc5d..b5034e9d 100644 --- a/src/utils/fluid_sys.h +++ b/src/utils/fluid_sys.h @@ -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)