Patch based on https://github.com/elementary/calendar/blob/master/vapi/posix-extension.vapi
Note: NLTime is actually a glibc'ism, but in the absence of a glibc.vapi, posix.vapi
is an acceptable place. See also bug #793443.
RADIXCHAR,
THOUSEP,
YESEXPR,
- NOEXPR
+ NOEXPR;
+ [CCode (cheader_filename = "langinfo.h", cname = "nl_langinfo")]
+ public unowned string to_string ();
+ }
+
+ [CCode (cheader_filename = "langinfo.h", cname = "nl_item", cprefix = "_NL_TIME_", has_type_id = false)]
+ public enum NLTime {
+ WEEK_NDAYS,
+ WEEK_1STDAY,
+ WEEK_1STWEEK,
+ FIRST_WEEKDAY,
+ FIRST_WORKDAY,
+ CAL_DIRECTION,
+ TIMEZONE;
+ [CCode (cheader_filename = "langinfo.h", cname = "nl_langinfo")]
+ public unowned string to_string ();
}
[CCode (cheader_filename = "langinfo.h")]