diff --git a/src/quantity/mod.rs b/src/quantity/mod.rs index 5338be4..c018aff 100644 --- a/src/quantity/mod.rs +++ b/src/quantity/mod.rs @@ -27,7 +27,7 @@ cross-compilation to other systems. RUG does not work on all systems. pub mod quantity; cfg_if::cfg_if! { - if #[cfg(target_arch = "unix")] { + if #[cfg(target_family = "unix")] { mod rationalq; mod floatq; } else { diff --git a/src/quantity/quantity.rs b/src/quantity/quantity.rs index c628361..9a6d2b3 100644 --- a/src/quantity/quantity.rs +++ b/src/quantity/quantity.rs @@ -16,7 +16,7 @@ use crate::quantity::FloatBase; cfg_if::cfg_if! { - if #[cfg(target_arch = "unix")] { + if #[cfg(target_family = "unix")] { use crate::quantity::rationalq::RationalQ; use crate::quantity::floatq::FloatQ; @@ -42,7 +42,7 @@ cfg_if::cfg_if! { impl Quantity { cfg_if::cfg_if! { - if #[cfg(target_arch = "unix")] { + if #[cfg(target_family = "unix")] { pub fn new_rational(top: i64, bottom: i64) -> Quantity { return wrap_rational!(RationalQ::from_frac(top, bottom)); }