Skip to content

Commit

Permalink
fixup! Add bindings for iconv calls
Browse files Browse the repository at this point in the history
Link with iconv on macOS and iOS.
  • Loading branch information
Minoru committed Jan 17, 2021
1 parent ac6ec1c commit e906ef7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/unix/mod.rs
Expand Up @@ -344,8 +344,12 @@ cfg_if! {
#[link(name = "m")]
extern {}
} else if #[cfg(any(target_os = "macos",
target_os = "ios",
target_os = "android",
target_os = "ios"))] {
#[link(name = "c")]
#[link(name = "m")]
#[link(name = "iconv")]
extern {}
} else if #[cfg(any(target_os = "android",
target_os = "openbsd"))] {
#[link(name = "c")]
#[link(name = "m")]
Expand Down

0 comments on commit e906ef7

Please sign in to comment.