diff options
Diffstat (limited to 'components/gfx/lib.rs')
-rw-r--r-- | components/gfx/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/gfx/lib.rs b/components/gfx/lib.rs index fb94e7b779f..3ada12238ac 100644 --- a/components/gfx/lib.rs +++ b/components/gfx/lib.rs @@ -6,7 +6,7 @@ #![feature(cfg_target_feature)] #![cfg_attr(any(target_os = "linux", target_os = "android"), feature(heap_api))] -#![feature(alloc)] +#![cfg_attr(any(target_os = "linux", target_os = "android"), feature(alloc))] #![feature(box_syntax)] #![feature(plugin)] #![feature(range_contains)] @@ -16,6 +16,9 @@ #![deny(unsafe_code)] +#[cfg(any(target_os = "linux", target_os = "android"))] +extern crate alloc; + extern crate app_units; #[macro_use] extern crate bitflags; |