Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/backends.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ cfg_if! {
target_os = "freebsd",
target_os = "hurd",
target_os = "illumos",
target_os = "cygwin",
// Check for target_arch = "arm" to only include the 3DS. Does not
// include the Nintendo Switch (which is target_arch = "aarch64").
all(target_os = "horizon", target_arch = "arm"),
Expand Down Expand Up @@ -161,7 +160,7 @@ cfg_if! {
} else if #[cfg(all(windows, target_vendor = "win7"))] {
mod windows_legacy;
pub use windows_legacy::*;
} else if #[cfg(windows)] {
} else if #[cfg(any(windows, target_os = "cygwin"))] {
mod windows;
pub use windows::*;
} else if #[cfg(all(target_arch = "x86_64", target_env = "sgx"))] {
Expand Down
2 changes: 1 addition & 1 deletion src/backends/windows_legacy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use core::{ffi::c_void, mem::MaybeUninit};

pub use crate::util::{inner_u32, inner_u64};

#[cfg(not(windows))]
#[cfg(not(any(windows, target_os = "cygwin")))]
compile_error!("`windows_legacy` backend can be enabled only for Windows targets!");

// Binding to the Windows.Win32.Security.Authentication.Identity.RtlGenRandom
Expand Down