We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b22f8b commit 4033870Copy full SHA for 4033870
src/common.rs
@@ -172,20 +172,15 @@ extern {
172
173
// These are all inline functions on android, so they end up just being entirely
174
// missing on that platform.
175
-cfg_if! {
176
- if #[cfg(target_os = "android")] {
177
- // empty...
178
- } else {
179
- extern {
180
- pub fn abs(i: c_int) -> c_int;
181
- pub fn atof(s: *const c_char) -> c_double;
182
- pub fn labs(i: c_long) -> c_long;
183
- pub fn rand() -> c_int;
184
- pub fn srand(seed: c_uint);
185
- }
186
187
-}
188
+#[cfg(not(target_os = "android"))]
+extern {
+ pub fn abs(i: c_int) -> c_int;
+ pub fn atof(s: *const c_char) -> c_double;
+ pub fn labs(i: c_long) -> c_long;
+ pub fn rand() -> c_int;
+ pub fn srand(seed: c_uint);
+}
189
190
cfg_if! {
191
if #[cfg(windows)] {
0 commit comments