projects
/
vector-math.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix build errors when `std` is disabled
[vector-math.git]
/
src
/
prim.rs
diff --git
a/src/prim.rs
b/src/prim.rs
index 184e5fcec9d5ac6d6a9a6037a14a5606b5a175e0..19f4270b2185d9099d3741e23be9f8b88a8326f5 100644
(file)
--- a/
src/prim.rs
+++ b/
src/prim.rs
@@
-187,7
+187,10
@@
macro_rules! impl_float {
self.to_bits()
}
fn abs(self) -> Self {
- $float::abs(self)
+ #[cfg(feature = "std")]
+ return $float::abs(self);
+ #[cfg(not(feature = "std"))]
+ todo!();
}
}
};