aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 36c0699..7e87795 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -275,13 +275,10 @@
//!
//! Users should generally avoid defining a flag with a value of zero.
-#![cfg_attr(not(test), no_std)]
+// ANDROID: Use std to allow building as a dylib.
+#![cfg_attr(not(any(test, android_dylib)), no_std)]
#![doc(html_root_url = "https://docs.rs/bitflags/1.3.2")]
-// ANDROID: Unconditionally use std to allow building as a dylib
-#[macro_use]
-extern crate std;
-
#[doc(hidden)]
pub extern crate core as _core;