1diff --git a/src/lib.rs b/src/lib.rs
2index 7c3616e..cbcd374 100644
3--- a/src/lib.rs
4+++ b/src/lib.rs
5@@ -46,6 +46,10 @@ use core::{ptr, slice, str};
6 #[cfg(feature = "no-panic")]
7 use no_panic::no_panic;
8
9+/// Local Android change: Use std to allow building as a dylib.
10+#[cfg(android_dylib)]
11+extern crate std;
12+
13 /// A correctly sized stack allocation for the formatted integer to be written
14 /// into.
15 ///
16