Fix mac breakage

This commit is contained in:
Brian Anderson 2012-06-24 20:40:25 -07:00
parent c92c1c661f
commit e36aac940a
3 changed files with 2 additions and 4 deletions

View file

@ -16,7 +16,7 @@ type NativeFont/& = quartz_native_font::QuartzNativeFont;
type NativeFont/& = ft_native_font::FreeTypeNativeFont;
#[cfg(target_os = "macos")]
fn with_test_native_font(f: fn@(NativeFont)) {
fn with_test_native_font(f: fn@(nf: &NativeFont)) {
quartz_native_font::with_test_native_font(f);
}

View file

@ -85,7 +85,6 @@ impl methods for FT_Error {
fn succeeded() -> bool { self == 0 as FT_Error }
}
#[cfg(target_os = "linux")]
fn with_test_native_font(f: fn@(nf: &NativeFont)) {
import font::test_font_bin;
import unwrap_result = result::unwrap;

View file

@ -17,7 +17,6 @@ class QuartzNativeFont/& {
}
}
#[cfg(target_os = "linux")]
fn with_test_native_font(f: fn@(nf: &NativeFont)) {
fn with_test_native_font(_f: fn@(nf: &NativeFont)) {
fail
}