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 22, 2019
1 parent d8fc27d commit 7a10cae
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 7a10cae

Please sign in to comment.