aboutsummaryrefslogtreecommitdiff
path: root/1.3.2/patches/std.diff
diff options
context:
space:
mode:
Diffstat (limited to '1.3.2/patches/std.diff')
-rw-r--r--1.3.2/patches/std.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/1.3.2/patches/std.diff b/1.3.2/patches/std.diff
new file mode 100644
index 0000000..a34fe97
--- /dev/null
+++ b/1.3.2/patches/std.diff
@@ -0,0 +1,14 @@
+diff --git a/src/lib.rs b/src/lib.rs
+index 935e432..7e87795 100644
+--- a/src/lib.rs
++++ b/src/lib.rs
+@@ -275,7 +275,8 @@
+ //!
+ //! 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")]
+
+ #[doc(hidden)]