diff --git a/src/backends.rs b/src/backends.rs index 95547d9d..441623bd 100644 --- a/src/backends.rs +++ b/src/backends.rs @@ -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"), @@ -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"))] { diff --git a/src/backends/windows_legacy.rs b/src/backends/windows_legacy.rs index 0e917015..77786be3 100644 --- a/src/backends/windows_legacy.rs +++ b/src/backends/windows_legacy.rs @@ -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