From 77b37431173a7267835f01915f7bc604d9f5a6ff Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Mon, 28 Sep 2015 12:19:36 -0400 Subject: Warning fixes for OS X. --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index e723240..8e54560 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -68,6 +68,7 @@ pub use window::{AvailableMonitorsIter, MonitorId, get_available_monitors, get_p pub use native_monitor::NativeMonitorId; use std::io; +#[cfg(not(target_os = "macos"))] use std::cmp::Ordering; mod api; @@ -377,6 +378,7 @@ pub struct PixelFormatRequirements { } impl PixelFormatRequirements { + #[cfg(not(target_os = "macos"))] fn choose_pixel_format(&self, iter: I) -> Result<(T, PixelFormat), CreationError> where I: IntoIterator, T: Clone { -- cgit v1.2.3