Skip to content

Commit a7fc5de

Browse files
committed
stdlib: Turn function calls into constants. Fix win32 breakage
1 parent aa0381d commit a7fc5de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/win32_os.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ fn pipe() -> {in: int, out: int} {
6161
let fds = {mutable in: 0, mutable out: 0};
6262
let res =
6363
os::libc::_pipe(ptr::mut_addr_of(fds.in), 1024u,
64-
libc_constants::O_BINARY() |
65-
libc_constants::O_NOINHERIT());
64+
libc_constants::O_BINARY |
65+
libc_constants::O_NOINHERIT);
6666
assert (res == 0);
6767
assert (fds.in != -1 && fds.in != 0);
6868
assert (fds.out != -1 && fds.in != 0);

0 commit comments

Comments
 (0)