File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use std::io;
1212use std:: ffi:: { OsString , OsStr } ;
1313use std:: os:: windows:: prelude:: * ;
1414use std:: ptr;
15- use libc:: { c_void , c_long} ;
15+ use libc:: c_long;
1616
1717pub type DWORD = u32 ;
1818type LPCWSTR = * const u16 ;
@@ -38,8 +38,6 @@ pub enum __HKEY__ {}
3838pub type HKEY = * mut __HKEY__ ;
3939pub type PHKEY = * mut HKEY ;
4040pub type REGSAM = DWORD ;
41- pub type LPWSTR = * mut u16 ;
42- pub type PFILETIME = * mut c_void ;
4341
4442#[ link( name = "advapi32" ) ]
4543extern "system" {
Original file line number Diff line number Diff line change @@ -47,7 +47,9 @@ pub type CHAR = c_char;
4747pub type HCRYPTPROV = LONG_PTR ;
4848pub type ULONG_PTR = c_ulonglong ;
4949pub type ULONG = c_ulong ;
50+ #[ cfg( target_arch = "x86_64" ) ]
5051pub type ULONGLONG = u64 ;
52+ #[ cfg( target_arch = "x86_64" ) ]
5153pub type DWORDLONG = ULONGLONG ;
5254
5355pub type LPBOOL = * mut BOOL ;
@@ -66,7 +68,6 @@ pub type LPVOID = *mut c_void;
6668pub type LPWCH = * mut WCHAR ;
6769pub type LPWIN32_FIND_DATAW = * mut WIN32_FIND_DATAW ;
6870pub type LPWSADATA = * mut WSADATA ;
69- pub type LPWSAPROTOCOLCHAIN = * mut WSAPROTOCOLCHAIN ;
7071pub type LPWSAPROTOCOL_INFO = * mut WSAPROTOCOL_INFO ;
7172pub type LPWSTR = * mut WCHAR ;
7273pub 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 ) ]
317316pub struct WSAPROTOCOL_INFO {
318317 pub dwServiceFlags1 : DWORD ,
You can’t perform that action at this time.
0 commit comments