Skip to content

Commit 1340814

Browse files
committed
Remove inconv linking on apple
1 parent 77fb037 commit 1340814

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

libc-test/semver/apple.txt

-3
Original file line numberDiff line numberDiff line change
@@ -1951,9 +1951,6 @@ getxattr
19511951
glob
19521952
glob_t
19531953
globfree
1954-
iconv
1955-
iconv_close
1956-
iconv_open
19571954
iconv_t
19581955
id_t
19591956
idtype_t

src/unix/bsd/apple/mod.rs

-16
Original file line numberDiff line numberDiff line change
@@ -6492,22 +6492,6 @@ cfg_if! {
64926492
}
64936493
}
64946494

6495-
// These require a dependency on `libiconv`, and including this when built as
6496-
// part of `std` means every Rust program gets it. Ideally we would have a link
6497-
// modifier to only include these if they are used, but we do not.
6498-
#[cfg_attr(not(feature = "rustc-dep-of-std"), link(name = "iconv"))]
6499-
extern "C" {
6500-
pub fn iconv_open(tocode: *const ::c_char, fromcode: *const ::c_char) -> iconv_t;
6501-
pub fn iconv(
6502-
cd: iconv_t,
6503-
inbuf: *mut *mut ::c_char,
6504-
inbytesleft: *mut ::size_t,
6505-
outbuf: *mut *mut ::c_char,
6506-
outbytesleft: *mut ::size_t,
6507-
) -> ::size_t;
6508-
pub fn iconv_close(cd: iconv_t) -> ::c_int;
6509-
}
6510-
65116495
cfg_if! {
65126496
if #[cfg(target_pointer_width = "32")] {
65136497
mod b32;

0 commit comments

Comments
 (0)