]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
After GLib 2.30 the GLib.AtomicInt.add returns int
authorMaciej Piechotka <uzytkownik2@gmail.com>
Sun, 2 Dec 2012 13:41:58 +0000 (13:41 +0000)
committerMaciej Piechotka <uzytkownik2@gmail.com>
Fri, 26 Apr 2013 20:15:57 +0000 (21:15 +0100)
vapi/glib-2.0.vapi

index 163ffbb5bd7e7c39b5be2fd09b72a33daa7bd4e1..1383405a27f515cfc7f09966314db728974baa5b 100644 (file)
@@ -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);