]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Add feature_test_macro details for Time struct's methods a57d92ede078381389d3e84609e75c3f6be4ffda 17/head
authorAlistair Thomas <astavale@yahoo.co.uk>
Thu, 20 Sep 2018 18:54:18 +0000 (19:54 +0100)
committerAlistair Thomas <astavale@yahoo.co.uk>
Thu, 20 Sep 2018 18:54:18 +0000 (19:54 +0100)
vapi/glib-2.0.vapi

index 9210f7c41ba89055de237ea4c6dbe2f11c15ff1d..e248f42beaa981673ea97ac0efbeb1378fd5cfe9 100644 (file)
@@ -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);
        }