diff options
-rw-r--r-- | patches/std.patch | 14 | ||||
-rw-r--r-- | src/lib.rs | 3 |
2 files changed, 17 insertions, 0 deletions
diff --git a/patches/std.patch b/patches/std.patch new file mode 100644 index 0000000..76b5c02 --- /dev/null +++ b/patches/std.patch @@ -0,0 +1,14 @@ +diff --git a/src/lib.rs b/src/lib.rs +index 4a17d3a..5493509 100644 +--- a/src/lib.rs ++++ b/src/lib.rs +@@ -12,6 +12,9 @@ + #![allow(clippy::eq_op)] + #![allow(clippy::assign_op_pattern)] + ++#[cfg(android_dylib)] ++extern crate std; ++ + mod libm_helper; + mod math; + @@ -12,6 +12,9 @@ #![allow(clippy::eq_op)] #![allow(clippy::assign_op_pattern)] +#[cfg(android_dylib)] +extern crate std; + mod libm_helper; mod math; |