Skip to content

Commit 7a10cae

Browse files
committed
time.rs: move newlib arm case to u32, not i32
1 parent d8fc27d commit 7a10cae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/time.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use libc;
66
libc_enum! {
77
#[cfg_attr(any(
88
target_env = "uclibc",
9-
all(target_env = "newlib", target_arch = "arm"),
109
target_os = "fuchsia",
1110
target_os = "redox",
1211
target_os = "freebsd",
@@ -20,7 +19,11 @@ libc_enum! {
2019
target_os = "solaris",
2120
target_os = "illumos")),
2221
), repr(i32))]
23-
#[cfg_attr(any(target_os = "macos", target_os = "ios"), repr(u32))]
22+
#[cfg_attr(any(
23+
all(target_env = "newlib", target_arch = "arm"),
24+
target_os = "macos",
25+
target_os = "ios",
26+
), repr(u32))]
2427
#[cfg_attr(any(
2528
all(target_env = "newlib", target_arch = "aarch64"),
2629
all(not(any(target_env = "newlib", target_env = "uclibc")), target_os = "hermit"),

0 commit comments

Comments
 (0)