core: fix windows breakage, r=burningtree.

This commit is contained in:
Graydon Hoare 2013-01-04 15:38:56 -08:00
parent 1f1e7e9616
commit 62f6f46072
2 changed files with 5 additions and 0 deletions

View File

@ -88,6 +88,10 @@ pub fn fill_charp_buf(f: fn(*mut c_char, size_t) -> bool)
#[cfg(windows)]
pub mod win32 {
use libc;
use vec;
use str;
use option;
use libc::types::os::arch::extra::DWORD;
pub fn fill_utf16_buf_and_decode(f: fn(*mut u16, DWORD) -> DWORD)

View File

@ -219,6 +219,7 @@ mod stat {
#[cfg(target_os = "win32")]
mod stat {
pub mod arch {
use libc;
pub fn default_stat() -> libc::stat {
libc::stat {
st_dev: 0,