From 756bcd6a59603472cfd6f88c91c6e88baee3eba7 Mon Sep 17 00:00:00 2001 From: Thom Chiovoloni Date: Sun, 5 Dec 2021 13:20:17 -0800 Subject: [PATCH] Allow demo to link on macOS (#4) This is a work around for https://github.com/rust-windowing/winit/pull/2078 --- examples/demo.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/demo.rs b/examples/demo.rs index f0715c53..d4580278 100644 --- a/examples/demo.rs +++ b/examples/demo.rs @@ -230,3 +230,8 @@ fn y8_to_rgba8(y8: u8) -> RGBA8 { fn rgb8_to_rgba8(rgb8: RGB8) -> RGBA8 { RGBA8 { r: rgb8.r, g: rgb8.g, b: rgb8.b, a: 0xFF } } + +// Work around for https://github.com/rust-windowing/winit/pull/2078 +#[cfg(target_os = "macos")] +#[link(name = "ColorSync", kind = "framework")] +extern "C" {}