Skip to content

Commit

Permalink
time.rs: move newlib arm case to u32, not i32
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinwern committed Sep 17, 2019
1 parent 2a30f35 commit 19f57d4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use libc;
libc_enum! {
#[cfg_attr(any(
target_env = "uclibc",
all(target_env = "newlib", target_arch = "arm"),
target_os = "fuchsia",
target_os = "redox",
target_os = "freebsd",
Expand All @@ -20,7 +19,11 @@ libc_enum! {
target_os = "solaris",
target_os = "illumos")),
), repr(i32))]
#[cfg_attr(any(target_os = "macos", target_os = "ios"), repr(u32))]
#[cfg_attr(any(
all(target_env = "newlib", target_arch = "arm"),
target_os = "macos",
target_os = "ios",
), repr(u32))]
#[cfg_attr(any(
all(target_env = "newlib", target_arch = "aarch64"),
all(not(any(target_env = "newlib", target_env = "uclibc")), target_os = "hermit"),
Expand Down

0 comments on commit 19f57d4

Please sign in to comment.