From: Jürg Billeter Date: Sat, 17 Mar 2012 13:53:58 +0000 (+0100) Subject: glib-2.0: Hide Thread constructors when targeting GLib < 2.32 X-Git-Tag: 0.16.0~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1402fde6eaa520564976779b937c0b3edc4bc629;p=thirdparty%2Fvala.git glib-2.0: Hide Thread constructors when targeting GLib < 2.32 Fixes bug 672284. --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 660427340..74c707cc6 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -1824,9 +1824,11 @@ namespace GLib { [CCode (ref_function = "g_thread_ref", unref_function = "g_thread_unref")] #endif public class Thread { +#if GLIB_2_32 public Thread (string? name, ThreadFunc func); [CCode (cname = "g_thread_try_new")] public Thread.try (string? name, ThreadFunc func) throws GLib.Error; +#endif public static bool supported (); [Deprecated (since = "2.32", replacement = "new Thread ()")] [CCode (simple_generics = true)]