Use 'alloc' gate only for platforms which use freetype in gfx

This commit is contained in:
Tetsuharu OHZEKI 2017-02-06 23:03:45 +09:00
parent fb4f421c8b
commit 550d726ad2
2 changed files with 5 additions and 4 deletions

View file

@ -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;