Put extern mod declaration for freetype inside an OS guarded section.

This commit is contained in:
Brian J. Burg 2012-10-25 11:45:53 -07:00
parent 9bde1e9f26
commit 800bf0a8ed

View file

@ -1,5 +1,3 @@
extern mod freetype;
use font::{Font, test_font_bin}; use font::{Font, test_font_bin};
struct FontCache { struct FontCache {
@ -50,6 +48,8 @@ fn create_font(lib: @FontCache, native_lib: &native::NativeFontCache) -> Result<
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
pub mod native { pub mod native {
extern mod freetype;
use ptr::{null, addr_of}; use ptr::{null, addr_of};
use freetype::{FT_Library, FT_Error}; use freetype::{FT_Library, FT_Error};
use freetype::bindgen::{FT_Init_FreeType, FT_Done_FreeType}; use freetype::bindgen::{FT_Init_FreeType, FT_Done_FreeType};