Skip to content

Commit 4477be0

Browse files
Update library/std/src/sys/pal/unix/weak.rs
Co-authored-by: Jubilee <[email protected]>
1 parent b5b69b1 commit 4477be0

File tree

1 file changed

+1
-7
lines changed
  • library/std/src/sys/pal/unix

1 file changed

+1
-7
lines changed

library/std/src/sys/pal/unix/weak.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,7 @@ use crate::ptr;
2828
use crate::sync::atomic::{self, AtomicPtr, Ordering};
2929

3030
// 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-
)))]
31+
#[cfg(all(unix, not(target_vendor = "apple")))]
3832
pub(crate) macro weak {
3933
(fn $name:ident($($t:ty),*) -> $ret:ty) => (
4034
let ref $name: ExternWeak<unsafe extern "C" fn($($t),*) -> $ret> = {

0 commit comments

Comments
 (0)