[Libdexter-commits] SF.net SVN: libdexter:[392] libdexter/trunk
Brought to you by:
pkovacs
|
From: <pk...@us...> - 2011-10-04 23:55:23
|
Revision: 392
http://libdexter.svn.sourceforge.net/libdexter/?rev=392&view=rev
Author: pkovacs
Date: 2011-10-04 23:55:16 +0000 (Tue, 04 Oct 2011)
Log Message:
-----------
replace deprecated g_atomic_int_exchange_and_add()
Modified Paths:
--------------
libdexter/trunk/ChangeLog
libdexter/trunk/configure.ac.in
libdexter/trunk/dexter/dexter-channel.c
Modified: libdexter/trunk/ChangeLog
===================================================================
--- libdexter/trunk/ChangeLog 2011-09-15 03:18:18 UTC (rev 391)
+++ libdexter/trunk/ChangeLog 2011-10-04 23:55:16 UTC (rev 392)
@@ -1,3 +1,7 @@
+2911-10-04 pkovacs
+ * Bumped Glib requirement to 2.30, replacing deprecated g_atomic_int_exchange_and_add()
+ with g_atomic_int_add().
+
2011-09-13 pkovacs
* Adjusted configure.ac.in for autoconf 2.68 and newer libtool.
* Removed some obsolete m4 files.
Modified: libdexter/trunk/configure.ac.in
===================================================================
--- libdexter/trunk/configure.ac.in 2011-09-15 03:18:18 UTC (rev 391)
+++ libdexter/trunk/configure.ac.in 2011-10-04 23:55:16 UTC (rev 392)
@@ -200,7 +200,7 @@
dnl *************************************************
dnl * Configure vars for pkg-config-based libraries *
dnl *************************************************
-GLIB_MIN_VERSION=2.10
+GLIB_MIN_VERSION=2.30
AC_SUBST([GLIB_MIN_VERSION])
PKG_CHECK_MODULES(DEXTER, glib-2.0 >= $GLIB_MIN_VERSION gthread-2.0 gobject-2.0 gmodule-no-export-2.0)
PKG_CHECK_MODULES(DEXTERPLUGIN, glib-2.0 >= $GLIB_MIN_VERSION gobject-2.0)
Modified: libdexter/trunk/dexter/dexter-channel.c
===================================================================
--- libdexter/trunk/dexter/dexter-channel.c 2011-09-15 03:18:18 UTC (rev 391)
+++ libdexter/trunk/dexter/dexter-channel.c 2011-10-04 23:55:16 UTC (rev 392)
@@ -1574,7 +1574,7 @@
/* create hash entry for channel object */
hash_entry = g_slice_new0 (ChannelObjectHashEntry);
- hash_entry->id = g_atomic_int_exchange_and_add (&channel->next_id, 1);
+ hash_entry->id = g_atomic_int_add (&channel->next_id, 1);
hash_entry->channel_object = g_object_ref (channel_object);
dexter_hash_table_insert (channel->object_hash, &hash_entry->id, hash_entry);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|