Skip to content

Commit

Permalink
Update library/std/src/sys/pal/unix/weak.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com>
  • Loading branch information
simlay and workingjubilee committed Apr 18, 2024
1 parent 88f35de commit b5b69b1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions library/std/src/sys/pal/unix/weak.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,7 @@ pub(crate) macro weak {
}

// On non-ELF targets, use the dlsym approximation of weak linkage.
#[cfg(any(
target_os = "macos",
target_os = "ios",
target_os = "tvos",
target_os = "watchos",
target_os = "visionos",
))]
#[cfg(target_vendor = "apple")]
pub(crate) use self::dlsym as weak;

pub(crate) struct ExternWeak<F: Copy> {
Expand Down

0 comments on commit b5b69b1

Please sign in to comment.