mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 13:18:54 +01:00
stdlib: Turn function calls into constants. Fix win32 breakage
This commit is contained in:
parent
aa0381dbd3
commit
a7fc5decab
@ -61,8 +61,8 @@ fn pipe() -> {in: int, out: int} {
|
||||
let fds = {mutable in: 0, mutable out: 0};
|
||||
let res =
|
||||
os::libc::_pipe(ptr::mut_addr_of(fds.in), 1024u,
|
||||
libc_constants::O_BINARY() |
|
||||
libc_constants::O_NOINHERIT());
|
||||
libc_constants::O_BINARY |
|
||||
libc_constants::O_NOINHERIT);
|
||||
assert (res == 0);
|
||||
assert (fds.in != -1 && fds.in != 0);
|
||||
assert (fds.out != -1 && fds.in != 0);
|
||||
|
Loading…
Reference in New Issue
Block a user