From: Maciej Piechotka Date: Sun, 2 Dec 2012 13:41:58 +0000 (+0000) Subject: After GLib 2.30 the GLib.AtomicInt.add returns int X-Git-Tag: 0.21.1~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49ec57aa31e4e41b4bf16b73379e1b6751b0504f;p=thirdparty%2Fvala.git After GLib 2.30 the GLib.AtomicInt.add returns int --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 163ffbb5b..1383405a2 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -1469,7 +1469,11 @@ namespace GLib { namespace AtomicInt { public static int get ([CCode (type = "volatile gint *")] ref int atomic); public static void set ([CCode (type = "volatile gint *")] ref int atomic, int newval); +#if GLIB_2_30 + public static int add ([CCode (type = "volatile gint *")] ref int atomic, int val); +#else public static void add ([CCode (type = "volatile gint *")] ref int atomic, int val); +#endif [Deprecated (since = "2.30", replacement = "add")] public static int exchange_and_add ([CCode (type = "volatile gint *")] ref int atomic, int val); public static bool compare_and_exchange ([CCode (type = "volatile gint *")] ref int atomic, int oldval, int newval);