We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20da3e1 commit 63c58d5Copy full SHA for 63c58d5
2 files changed
src/core_graphics/mod.rs
@@ -7,7 +7,8 @@
7
8
#![cfg(feature = "core_graphics")]
9
10
-#[link(name = "CoreGraphics", kind = "framework")]
+#[cfg_attr(target_vendor = "apple", link(name = "CoreGraphics", kind = "framework"))]
11
+#[cfg_attr(not(target_vendor = "apple"), link(name = "CoreGraphics"))]
12
extern "C" {}
13
14
mod geometry;
src/foundation/mod.rs
@@ -52,5 +52,6 @@ pub type NSTimeInterval = f64;
52
#[allow(non_upper_case_globals)]
53
pub const NSNotFound: crate::objc::NSInteger = crate::objc::NSIntegerMax;
54
55
-#[link(name = "Foundation", kind = "framework")]
+#[cfg_attr(target_vendor = "apple", link(name = "Foundation", kind = "framework"))]
56
+#[cfg_attr(not(target_vendor = "apple"), link(name = "Foundation"))]
57
0 commit comments