summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-12-24 18:40:18 +0000
committerbors <bors@rust-lang.org>2018-12-24 18:40:18 +0000
commita4d41775f3df6db4bbbf91c9eb59c0d78a87038c (patch)
tree3ddd8032204f3220844088c933c86717d52c9290
parent26ffb5c10aeb2b9e60ab19972e3e64ebd8be74e1 (diff)
parent1da1ffe0def5303e504973fc83e55140fbd2936b (diff)
downloadrust-libc-a4d41775f3df6db4bbbf91c9eb59c0d78a87038c.tar.gz
Auto merge of #1183 - xmclark:make-tm-members-public-windows, r=gnzlbg
make tm struct members public This PR makes the members of `struct tm` public. I see no reason why these fields should not be public fields. They are public in the other targets. I did a blame and it seems that they have been private since added a couple years ago. https://github.com/rust-lang/libc/commit/53e0d387f8765e9faa1ea921450167bb7f0b31ff
-rw-r--r--src/windows/mod.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/windows/mod.rs b/src/windows/mod.rs
index 73c5989b87..4bea45980b 100644
--- a/src/windows/mod.rs
+++ b/src/windows/mod.rs
@@ -75,15 +75,15 @@ s! {
}
pub struct tm {
- tm_sec: ::c_int,
- tm_min: ::c_int,
- tm_hour: ::c_int,
- tm_mday: ::c_int,
- tm_mon: ::c_int,
- tm_year: ::c_int,
- tm_wday: ::c_int,
- tm_yday: ::c_int,
- tm_isdst: ::c_int,
+ pub tm_sec: ::c_int,
+ pub tm_min: ::c_int,
+ pub tm_hour: ::c_int,
+ pub tm_mday: ::c_int,
+ pub tm_mon: ::c_int,
+ pub tm_year: ::c_int,
+ pub tm_wday: ::c_int,
+ pub tm_yday: ::c_int,
+ pub tm_isdst: ::c_int,
}
pub struct timeval {