Skip to content

Commit 5a1b62c

Browse files
committed
Fix Windows
1 parent 75cd69c commit 5a1b62c

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/librustc_trans/back/msvc/registry.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::io;
1212
use std::ffi::{OsString, OsStr};
1313
use std::os::windows::prelude::*;
1414
use std::ptr;
15-
use libc::{c_void, c_long};
15+
use libc::c_long;
1616

1717
pub type DWORD = u32;
1818
type LPCWSTR = *const u16;
@@ -38,8 +38,6 @@ pub enum __HKEY__ {}
3838
pub type HKEY = *mut __HKEY__;
3939
pub type PHKEY = *mut HKEY;
4040
pub type REGSAM = DWORD;
41-
pub type LPWSTR = *mut u16;
42-
pub type PFILETIME = *mut c_void;
4341

4442
#[link(name = "advapi32")]
4543
extern "system" {

src/libstd/sys/windows/c.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ pub type CHAR = c_char;
4747
pub type HCRYPTPROV = LONG_PTR;
4848
pub type ULONG_PTR = c_ulonglong;
4949
pub type ULONG = c_ulong;
50+
#[cfg(target_arch = "x86_64")]
5051
pub type ULONGLONG = u64;
52+
#[cfg(target_arch = "x86_64")]
5153
pub type DWORDLONG = ULONGLONG;
5254

5355
pub type LPBOOL = *mut BOOL;
@@ -66,7 +68,6 @@ pub type LPVOID = *mut c_void;
6668
pub type LPWCH = *mut WCHAR;
6769
pub type LPWIN32_FIND_DATAW = *mut WIN32_FIND_DATAW;
6870
pub type LPWSADATA = *mut WSADATA;
69-
pub type LPWSAPROTOCOLCHAIN = *mut WSAPROTOCOLCHAIN;
7071
pub type LPWSAPROTOCOL_INFO = *mut WSAPROTOCOL_INFO;
7172
pub type LPWSTR = *mut WCHAR;
7273
pub type LPFILETIME = *mut FILETIME;
@@ -311,8 +312,6 @@ pub struct WSADATA {
311312
pub szSystemStatus: [u8; WSASYS_STATUS_LEN + 1],
312313
}
313314

314-
pub type WSAEVENT = HANDLE;
315-
316315
#[repr(C)]
317316
pub struct WSAPROTOCOL_INFO {
318317
pub dwServiceFlags1: DWORD,

0 commit comments

Comments
 (0)