From 10f706582ebb663e51d3a0853adf22fb5b5db8b7 Mon Sep 17 00:00:00 2001 From: Mark Date: Sat, 8 Apr 2023 10:51:22 -0700 Subject: [PATCH] Fixed configuration --- src/quantity/mod.rs | 2 +- src/quantity/quantity.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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)); }