From: Rico Tzschichholz Date: Thu, 16 Apr 2020 08:00:21 +0000 (+0200) Subject: glib-2.0: Guard Pid.to_string() with GLIB_2_50 to deal with G_PID_FORMAT X-Git-Tag: 0.49.1~170 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2308a3261b6d7bac2ffa8b33591a795169015f82;p=thirdparty%2Fvala.git glib-2.0: Guard Pid.to_string() with GLIB_2_50 to deal with G_PID_FORMAT Otherwise building with glib-2.0 < 2.50 breaks due availability check of GLib.Pid.FORMAT. --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index f323a2667..f5fe2a3b5 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -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);