diff options
Diffstat (limited to 'src/libcore/cmath.rs')
| -rw-r--r-- | src/libcore/cmath.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libcore/cmath.rs b/src/libcore/cmath.rs index 881dd959e8a..c04d4915ba2 100644 --- a/src/libcore/cmath.rs +++ b/src/libcore/cmath.rs @@ -23,6 +23,7 @@ use libc::c_double; #[link_name = "m"] #[abi = "cdecl"] extern mod c_double { + #[legacy_exports]; // Alpabetically sorted by link_name @@ -98,6 +99,7 @@ extern mod c_double { #[link_name = "m"] #[abi = "cdecl"] extern mod c_float { + #[legacy_exports]; // Alpabetically sorted by link_name @@ -166,6 +168,7 @@ extern mod c_float { // FIXME obtain machine float/math constants automatically (Issue #1986) mod c_float_targ_consts { + #[legacy_exports]; const radix: uint = 2u; const mantissa_digits: uint = 24u; const digits: uint = 6u; @@ -181,6 +184,7 @@ mod c_float_targ_consts { } mod c_double_targ_consts { + #[legacy_exports]; const radix: uint = 2u; const mantissa_digits: uint = 53u; const digits: uint = 15u; @@ -200,6 +204,7 @@ mod c_double_targ_consts { FIXME use these once they can be parsed (see Issue #1433) mod c_float_math_consts { + #[legacy_exports]; const pi: c_float = 0x1.921fb6p+1_f32; const div_1_pi: c_float = 0x1.45f306p-2_f32; const div_2_pi: c_float = 0x1.45f306p-1_f32; @@ -216,6 +221,7 @@ mod c_float_math_consts { } mod c_double_math_consts { + #[legacy_exports]; const pi: c_double = 0x1.921fb54442d18p+1_f64; const div_1_pi: c_double = 0x1.45f306dc9c883p-2_f64; const div_2_pi: c_double = 0x1.45f306dc9c883p-1_f64; @@ -232,6 +238,7 @@ mod c_double_math_consts { } mod c_float_targ_consts { + #[legacy_exports]; const radix: uint = 2u; const mantissa_digits: uint = 24u; const digits: uint = 6u; @@ -245,6 +252,7 @@ mod c_float_targ_consts { } mod c_double_targ_consts { + #[legacy_exports]; const radix: uint = 2u; const mantissa_digits: uint = 53u; const digits: uint = 15u; |
