We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5b69b1 commit 4477be0Copy full SHA for 4477be0
library/std/src/sys/pal/unix/weak.rs
@@ -28,13 +28,7 @@ use crate::ptr;
28
use crate::sync::atomic::{self, AtomicPtr, Ordering};
29
30
// We can use true weak linkage on ELF targets.
31
-#[cfg(not(any(
32
- target_os = "macos",
33
- target_os = "ios",
34
- target_os = "tvos",
35
- target_os = "watchos",
36
- target_os = "visionos",
37
-)))]
+#[cfg(all(unix, not(target_vendor = "apple")))]
38
pub(crate) macro weak {
39
(fn $name:ident($($t:ty),*) -> $ret:ty) => (
40
let ref $name: ExternWeak<unsafe extern "C" fn($($t),*) -> $ret> = {
0 commit comments