Skip to content

Commit a4d4177

Browse files
committed
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. 53e0d38
2 parents 26ffb5c + 1da1ffe commit a4d4177

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/windows/mod.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ s! {
7575
}
7676

7777
pub struct tm {
78-
tm_sec: ::c_int,
79-
tm_min: ::c_int,
80-
tm_hour: ::c_int,
81-
tm_mday: ::c_int,
82-
tm_mon: ::c_int,
83-
tm_year: ::c_int,
84-
tm_wday: ::c_int,
85-
tm_yday: ::c_int,
86-
tm_isdst: ::c_int,
78+
pub tm_sec: ::c_int,
79+
pub tm_min: ::c_int,
80+
pub tm_hour: ::c_int,
81+
pub tm_mday: ::c_int,
82+
pub tm_mon: ::c_int,
83+
pub tm_year: ::c_int,
84+
pub tm_wday: ::c_int,
85+
pub tm_yday: ::c_int,
86+
pub tm_isdst: ::c_int,
8787
}
8888

8989
pub struct timeval {

0 commit comments

Comments
 (0)