From 3cd999b60bebd1d2e3acf85b086980fcfc15ff26 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 22 Apr 2015 16:59:55 +0200 Subject: [PATCH] Only define feature gates when they're used. --- ports/glutin/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ports/glutin/lib.rs b/ports/glutin/lib.rs index f2911891bdb..8198eae5493 100644 --- a/ports/glutin/lib.rs +++ b/ports/glutin/lib.rs @@ -6,8 +6,7 @@ #![feature(int_uint)] #![feature(box_syntax)] -#![feature(old_io)] -#![feature(std_misc)] +#![cfg_attr(all(feature = "window", target_os = "linux"), feature(old_io, std_misc))] #[macro_use] extern crate bitflags; #[cfg(target_os="macos")]