From 3254bee55e38c756818bca6a8d65ff8fad641e9a Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Thu, 27 Sep 2012 14:48:40 -0700 Subject: [PATCH] More fixing for windows build. --- src/libcore/os.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libcore/os.rs b/src/libcore/os.rs index 5d880e7cb595..0b67b136c7fc 100644 --- a/src/libcore/os.rs +++ b/src/libcore/os.rs @@ -68,7 +68,7 @@ pub fn fill_charp_buf(f: fn(*mut c_char, size_t) -> bool) mod win32 { use libc::DWORD; - fn fill_utf16_buf_and_decode(f: fn(*mut u16, DWORD) -> DWORD) + pub fn fill_utf16_buf_and_decode(f: fn(*mut u16, DWORD) -> DWORD) -> Option<~str> { let mut n = tmpbuf_sz as DWORD; let mut res = None; @@ -93,7 +93,7 @@ mod win32 { return res; } - fn as_utf16_p(s: &str, f: fn(*u16) -> T) -> T { + pub fn as_utf16_p(s: &str, f: fn(*u16) -> T) -> T { let mut t = str::to_utf16(s); // Null terminate before passing on. t += ~[0u16]; @@ -557,7 +557,7 @@ pub fn make_dir(p: &Path, mode: c_int) -> bool { // FIXME: turn mode into something useful? #2623 do as_utf16_p(p.to_str()) |buf| { libc::CreateDirectoryW(buf, unsafe { - unsafe::reinterpret_cast(&0) + cast::reinterpret_cast(&0) }) != (0 as BOOL) }