]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_trans/back/msvc/registry.rs
Fix Windows
[rust.git] / src / librustc_trans / back / msvc / registry.rs
index 24179a0cccd226e30792fb01000a748299382d47..8242f53896afc6c762a3ff2ef84edf62295456de 100644 (file)
@@ -12,9 +12,9 @@
 use std::ffi::{OsString, OsStr};
 use std::os::windows::prelude::*;
 use std::ptr;
-use libc::{c_void, c_long};
+use libc::c_long;
 
-type DWORD = u32;
+pub type DWORD = u32;
 type LPCWSTR = *const u16;
 type LONG = c_long;
 type LPDWORD = *mut DWORD;
 const REG_SZ: DWORD = 1;
 const ERROR_SUCCESS: i32 = 0;
 
-enum __HKEY__ {}
+pub enum __HKEY__ {}
 pub type HKEY = *mut __HKEY__;
 pub type PHKEY = *mut HKEY;
 pub type REGSAM = DWORD;
-pub type LPWSTR = *mut u16;
-pub type PFILETIME = *mut c_void;
 
 #[link(name = "advapi32")]
 extern "system" {