Skip to content

Commit 52607a3

Browse files
committed
---
yaml --- r: 16381 b: refs/heads/try c: c7c37de h: refs/heads/master i: 16379: 415bcb6 v: v3
1 parent dee5ed5 commit 52607a3

39 files changed

+376
-745
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 7a699852cb47aadeeb948491db77e1f0a1a1f1ee
5+
refs/heads/try: c7c37debe4b7827234642df3c1ed378b7c3e1849
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/libcore/cmath.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ native mod c_double {
4848
pure fn frexp(n: c_double, &value: c_int) -> c_double;
4949
pure fn hypot(x: c_double, y: c_double) -> c_double;
5050
pure fn ldexp(x: c_double, n: c_int) -> c_double;
51-
#[cfg(unix)]
51+
#[cfg(target_os = "linux")]
52+
#[cfg(target_os = "macos")]
53+
#[cfg(target_os = "freebsd")]
5254
#[link_name="lgamma_r"] pure fn lgamma(n: c_double,
5355
&sign: c_int) -> c_double;
54-
#[cfg(windows)]
56+
#[cfg(target_os = "win32")]
5557
#[link_name="__lgamma_r"] pure fn lgamma(n: c_double,
5658
&sign: c_int) -> c_double;
5759
// renamed: log is a reserved keyword; ln seems more natural, too
@@ -129,11 +131,13 @@ native mod c_float {
129131
#[link_name="hypotf"] pure fn hypot(x: c_float, y: c_float) -> c_float;
130132
#[link_name="ldexpf"] pure fn ldexp(x: c_float, n: c_int) -> c_float;
131133

132-
#[cfg(unix)]
134+
#[cfg(target_os="linux")]
135+
#[cfg(target_os="macos")]
136+
#[cfg(target_os="freebsd")]
133137
#[link_name="lgammaf_r"] pure fn lgamma(n: c_float,
134138
&sign: c_int) -> c_float;
135139

136-
#[cfg(windows)]
140+
#[cfg(target_os="win32")]
137141
#[link_name="__lgammaf_r"] pure fn lgamma(n: c_float,
138142
&sign: c_int) -> c_float;
139143

branches/try/src/libcore/comm.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,15 +420,15 @@ fn test_recv_chan() {
420420

421421
#[test]
422422
#[should_fail]
423-
#[ignore(cfg(windows))]
423+
#[ignore(cfg(target_os = "win32"))]
424424
fn test_recv_chan_dead() {
425425
let ch = chan(port());
426426
send(ch, "flower");
427427
recv_chan(ch);
428428
}
429429

430430
#[test]
431-
#[ignore(cfg(windows))]
431+
#[ignore(cfg(target_os = "win32"))]
432432
fn test_recv_chan_wrong_task() {
433433
let po = port();
434434
let ch = chan(po);
@@ -464,7 +464,7 @@ fn test_listen() {
464464
}
465465

466466
#[test]
467-
#[ignore(cfg(windows))]
467+
#[ignore(cfg(target_os="win32"))]
468468
fn test_port_detach_fail() {
469469
iter::repeat(100u) {||
470470
let builder = task::builder();

branches/try/src/libcore/io.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,12 @@ fn fd_writer(fd: fd_t, cleanup: bool) -> writer {
398398
fn mk_file_writer(path: str, flags: [fileflag])
399399
-> result<writer, str> {
400400

401-
#[cfg(windows)]
401+
#[cfg(target_os = "win32")]
402402
fn wb() -> c_int { (O_WRONLY | O_BINARY) as c_int }
403403

404-
#[cfg(unix)]
404+
#[cfg(target_os = "linux")]
405+
#[cfg(target_os = "macos")]
406+
#[cfg(target_os = "freebsd")]
405407
fn wb() -> c_int { O_WRONLY as c_int }
406408

407409
let mut fflags: c_int = wb();

branches/try/src/libcore/iter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ fn test_min() {
229229
230230
#[test]
231231
#[should_fail]
232-
#[ignore(cfg(windows))]
232+
#[ignore(cfg(target_os = "win32"))]
233233
fn test_min_empty() {
234234
min::<int, [int]>([]);
235235
}
@@ -241,7 +241,7 @@ fn test_max() {
241241
242242
#[test]
243243
#[should_fail]
244-
#[ignore(cfg(windows))]
244+
#[ignore(cfg(target_os = "win32"))]
245245
fn test_max_empty() {
246246
max::<int, [int]>([]);
247247
}

0 commit comments

Comments
 (0)