mirror of
				https://github.com/rm-dr/daisy
				synced 2025-11-04 02:43:21 -08:00 
			
		
		
		
	Fixed configuration
This commit is contained in:
		@@ -27,7 +27,7 @@ cross-compilation to other systems. RUG does not work on all systems.
 | 
				
			|||||||
pub mod quantity;
 | 
					pub mod quantity;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cfg_if::cfg_if! {
 | 
					cfg_if::cfg_if! {
 | 
				
			||||||
	if #[cfg(target_arch = "unix")] {
 | 
						if #[cfg(target_family = "unix")] {
 | 
				
			||||||
		mod rationalq;
 | 
							mod rationalq;
 | 
				
			||||||
		mod floatq;
 | 
							mod floatq;
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,7 +16,7 @@ use crate::quantity::FloatBase;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cfg_if::cfg_if! {
 | 
					cfg_if::cfg_if! {
 | 
				
			||||||
	if #[cfg(target_arch = "unix")] {
 | 
						if #[cfg(target_family = "unix")] {
 | 
				
			||||||
		use crate::quantity::rationalq::RationalQ;
 | 
							use crate::quantity::rationalq::RationalQ;
 | 
				
			||||||
		use crate::quantity::floatq::FloatQ;
 | 
							use crate::quantity::floatq::FloatQ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -42,7 +42,7 @@ cfg_if::cfg_if! {
 | 
				
			|||||||
impl Quantity {
 | 
					impl Quantity {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	cfg_if::cfg_if! {
 | 
						cfg_if::cfg_if! {
 | 
				
			||||||
		if #[cfg(target_arch = "unix")] {
 | 
							if #[cfg(target_family = "unix")] {
 | 
				
			||||||
			pub fn new_rational(top: i64, bottom: i64) -> Quantity {
 | 
								pub fn new_rational(top: i64, bottom: i64) -> Quantity {
 | 
				
			||||||
				return wrap_rational!(RationalQ::from_frac(top, bottom));
 | 
									return wrap_rational!(RationalQ::from_frac(top, bottom));
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user