Skip to content

Commit 99a3e4e

Browse files
committed
Add windows_sys typedef for Win ARM32
1 parent 3ebb916 commit 99a3e4e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

std/src/sys/windows/c/windows_sys.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4275,3 +4275,20 @@ impl ::core::clone::Clone for XSAVE_FORMAT {
42754275
*self
42764276
}
42774277
}
4278+
// Begin of ARM32 shim
4279+
cfg_if::cfg_if! {
4280+
if #[cfg(target_arch = "arm")] {
4281+
#[repr(C)]
4282+
pub struct WSADATA {
4283+
pub wVersion: u16,
4284+
pub wHighVersion: u16,
4285+
pub szDescription: [u8; 257],
4286+
pub szSystemStatus: [u8; 129],
4287+
pub iMaxSockets: u16,
4288+
pub iMaxUdpDg: u16,
4289+
pub lpVendorInfo: PSTR,
4290+
}
4291+
pub enum CONTEXT {}
4292+
}
4293+
}
4294+
// End of ARM32 shim

0 commit comments

Comments
 (0)