Skip to content

Commit

Permalink
Check feature use_mac_framework with mac_framework
Browse files Browse the repository at this point in the history
  • Loading branch information
gridbugs authored and Cobrand committed Jan 15, 2017
1 parent 460a629 commit b3ee9b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/sdl2/image/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ use sys;
// Setup linking for all targets.
#[cfg(target_os="macos")]
mod mac {
#[cfg(mac_framework)]
#[cfg(any(mac_framework, feature="use_mac_framework"))]
#[link(kind="framework", name="SDL2_image")]
extern {}

#[cfg(not(mac_framework))]
#[cfg(not(any(mac_framework, feature="use_mac_framework")))]
#[link(name="SDL2_image")]
extern {}
}
Expand Down
4 changes: 2 additions & 2 deletions src/sdl2/mixer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ use ::version::Version;
// Setup linking for all targets.
#[cfg(target_os="macos")]
mod mac {
#[cfg(mac_framework)]
#[cfg(any(mac_framework, feature="use_mac_framework"))]
#[link(kind="framework", name="SDL2_mixer")]
extern "C" {
}

#[cfg(not(mac_framework))]
#[cfg(not(any(mac_framework, feature="use_mac_framework")))]
#[link(name="SDL2_mixer")]
extern "C" {
}
Expand Down
4 changes: 2 additions & 2 deletions src/sdl2/ttf/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ mod context;
// Setup linking for all targets.
#[cfg(target_os="macos")]
mod mac {
#[cfg(mac_framework)]
#[cfg(any(mac_framework, feature="use_mac_framework"))]
#[link(kind="framework", name="SDL2_ttf")]
extern {}

#[cfg(not(mac_framework))]
#[cfg(not(any(mac_framework, feature="use_mac_framework")))]
#[link(name="SDL2_ttf")]
extern {}
}
Expand Down

0 comments on commit b3ee9b2

Please sign in to comment.