]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Guard Pid.to_string() with GLIB_2_50 to deal with G_PID_FORMAT
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 16 Apr 2020 08:00:21 +0000 (10:00 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 16 Apr 2020 08:00:21 +0000 (10:00 +0200)
Otherwise building with glib-2.0 < 2.50 breaks due availability check of
GLib.Pid.FORMAT.

vapi/glib-2.0.vapi

index f323a26679b2aa4310756c23d321a2946d3d11f4..f5fe2a3b5100bf52368d94615ef1f18338a1b3ff 100644 (file)
@@ -1963,8 +1963,10 @@ namespace GLib {
                [Version (since = "2.50")]
                public const string FORMAT;
 
+#if GLIB_2_50
                [CCode (cname = "g_strdup_printf", instance_pos = -1)]
                public string to_string (string format = "%" + FORMAT);
+#endif
        }
 
        public delegate void ChildWatchFunc (Pid pid, int status);