[vala/staging] glib-2.0: Add feature_test_macro details for Time struct's methods
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] glib-2.0: Add feature_test_macro details for Time struct's methods
- Date: Fri, 21 Sep 2018 05:41:32 +0000 (UTC)
commit a57d92ede078381389d3e84609e75c3f6be4ffda
Author: Alistair Thomas <astavale yahoo co uk>
Date: Thu Sep 20 19:54:18 2018 +0100
glib-2.0: Add feature_test_macro details for Time struct's methods
vapi/glib-2.0.vapi | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]