[vala/0.40] 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/0.40] glib-2.0: Add feature_test_macro details for Time struct's methods
- Date: Mon, 24 Sep 2018 08:43:11 +0000 (UTC)
commit 77b5aae1c25e510849e31b480ed0986099b178f7
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 7638f6d3a..052fea6fc 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -2907,9 +2907,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) {
@@ -2938,7 +2938,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]