From: Alistair Thomas Date: Thu, 20 Sep 2018 18:54:18 +0000 (+0100) Subject: glib-2.0: Add feature_test_macro details for Time struct's methods X-Git-Tag: 0.43.1~224 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fmerge-requests%2F17%2Fhead;p=thirdparty%2Fvala.git glib-2.0: Add feature_test_macro details for Time struct's methods --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 9210f7c41..e248f42be 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -2909,9 +2909,9 @@ namespace GLib { [CCode (cname = "tm_isdst")] public int isdst; - [CCode (cname = "gmtime_r")] + [CCode (cname = "gmtime_r", feature_test_macro = "_XOPEN_SOURCE")] static void gmtime_r (ref time_t time, out Time result); - [CCode (cname = "localtime_r")] + [CCode (cname = "localtime_r", feature_test_macro = "_XOPEN_SOURCE")] static void localtime_r (ref time_t time, out Time result); public static Time gm (time_t time) { @@ -2940,7 +2940,7 @@ namespace GLib { [CCode (cname = "strftime", instance_pos = -1)] public size_t strftime (char[] s, string format); - [CCode (cname = "strptime", instance_pos = -1)] + [CCode (cname = "strptime", instance_pos = -1, feature_test_macro = "_XOPEN_SOURCE")] public unowned string? strptime (string buf, string format); }