summaryrefslogtreecommitdiff
path: root/gck/gck-attributes.c
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2012-06-26 15:56:08 +0200
committerStef Walter <stefw@gnome.org>2012-06-26 15:57:35 +0200
commitf41b7511306faa1ae4134fb42d1933b7b29b14b4 (patch)
tree2e4e4918e8271ca53e65084da56f6e1d65caeaea /gck/gck-attributes.c
parentae047de1d36b163be956cd86fd47eaacadc6778a (diff)
downloadgcr-f41b7511306faa1ae4134fb42d1933b7b29b14b4.tar.gz
Remove support code for old glib versions
* Remove a bunch of #ifdefs for old glib versions prior to 2.32.0. * Already bumped glib dependency in a recent commit.
Diffstat (limited to 'gck/gck-attributes.c')
-rw-r--r--gck/gck-attributes.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gck/gck-attributes.c b/gck/gck-attributes.c
index d05287a..356d6f1 100644
--- a/gck/gck-attributes.c
+++ b/gck/gck-attributes.c
@@ -123,12 +123,7 @@ value_ref (guchar *data)
g_assert (data != NULL);
-#if GLIB_CHECK_VERSION (2,29,90)
previous = g_atomic_int_add (value, 1);
-#else
- previous = g_atomic_int_exchange_and_add (value, 1);
-#endif
-
if (G_UNLIKELY (previous <= 0)) {
g_warning ("An owned GckAttribute value has been modified outside of the "
"gck library or an invalid attribute was passed to gck_builder_add_attribute()");
@@ -240,12 +235,7 @@ gck_builder_ref (GckBuilder *builder)
g_return_val_if_fail (builder != NULL, NULL);
-#if GLIB_CHECK_VERSION (2,29,90)
stack = g_atomic_int_add (&real->refs, 1) == 0;
-#else
- stack = g_atomic_int_exchange_and_add (&real->refs, 1) == 0;
-#endif
-
if G_UNLIKELY (stack) {
g_warning ("Never call gck_builder_ref() on a stack allocated GckBuilder structure");
return NULL;