From 926cb903ae349c7e57ac44bdbcb7d7ff3e7229f5 Mon Sep 17 00:00:00 2001 From: Connor Imes Date: Sat, 8 Aug 2015 23:03:13 -0500 Subject: [PATCH] Some imports are used in linux only. Fixes #7088. --- ports/cef/window.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ports/cef/window.rs b/ports/cef/window.rs index 2298958e455..bc2dde520c3 100644 --- a/ports/cef/window.rs +++ b/ports/cef/window.rs @@ -7,9 +7,12 @@ //! This is used for off-screen rendering mode only; on-screen windows (the default embedding mode) //! are managed by a platform toolkit (Glutin). +#[cfg(target_os="linux")] use core::CEF_APP; use eutil::Downcast; -use interfaces::{CefApp, CefBrowser}; +#[cfg(target_os="linux")] +use interfaces::CefApp; +use interfaces::CefBrowser; use render_handler::CefRenderHandlerExtensions; use rustc_unicode::str::Utf16Encoder; use types::{cef_cursor_handle_t, cef_cursor_type_t, cef_rect_t};