Check feature use_mac_framework with mac_framework

This commit is contained in:
Stephen Sherratt
2017-01-15 18:00:58 +01:00
committed by Cobrand
parent 460a629b35
commit b3ee9b2f04
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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 {}
}
+2 -2
View File
@@ -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" {
}
+2 -2
View File
@@ -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 {}
}