summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2014-03-22 22:10:13 +0100
committerraveit65 <[email protected]>2014-03-22 22:10:13 +0100
commitc966485816928ad8aa4b135815fa918bcef46837 (patch)
treef7fce32b0d2b7c587f3fa5d96f3ca40320cf6c43 /eel
parenta395859226fd2532b5a8a59757c460ccbd26ded0 (diff)
downloadcaja-c966485816928ad8aa4b135815fa918bcef46837.tar.bz2
caja-c966485816928ad8aa4b135815fa918bcef46837.tar.xz
fix g_atomic_int_exchange_and_add deprecations
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-string.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/eel/eel-string.c b/eel/eel-string.c
index fd733f88..3a8f2581 100644
--- a/eel/eel-string.c
+++ b/eel/eel-string.c
@@ -988,7 +988,11 @@ retry_atomic_decrement:
{
G_LOCK (unique_ref_strs);
/* Need to recheck after taking lock to avoid races with _get_unique() */
+#if !GLIB_CHECK_VERSION (2, 30, 0)
if (g_atomic_int_exchange_and_add (count, -1) == 0x80000001)
+#else
+ if (g_atomic_int_add (count, -1) == 0x80000001)
+#endif
{
g_hash_table_remove (unique_ref_strs, (char *)str);
g_free ((char *)count);