mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
Put extern mod declaration for freetype inside an OS guarded section.
This commit is contained in:
parent
9bde1e9f26
commit
800bf0a8ed
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,3 @@
|
|||
extern mod freetype;
|
||||
|
||||
use font::{Font, test_font_bin};
|
||||
|
||||
struct FontCache {
|
||||
|
@ -50,6 +48,8 @@ fn create_font(lib: @FontCache, native_lib: &native::NativeFontCache) -> Result<
|
|||
|
||||
#[cfg(target_os = "linux")]
|
||||
pub mod native {
|
||||
extern mod freetype;
|
||||
|
||||
use ptr::{null, addr_of};
|
||||
use freetype::{FT_Library, FT_Error};
|
||||
use freetype::bindgen::{FT_Init_FreeType, FT_Done_FreeType};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue