diff options
| author | bdbai <bdbaiapp@163.com> | 2023-06-11 22:50:30 +0800 |
|---|---|---|
| committer | bdbai <bdbaiapp@163.com> | 2023-06-12 22:40:30 +0800 |
| commit | f7f25b0e2f32a3c6eb778a229631a9a5c3979f92 (patch) | |
| tree | dd904a367948badabc328c537d362f9e89990bf3 /library/std/src/sys/windows | |
| parent | cb882fa998571e8a7ec1c06bb5d9dd9bc3423629 (diff) | |
Add windows_sys typedef for Win ARM32
Diffstat (limited to 'library/std/src/sys/windows')
| -rw-r--r-- | library/std/src/sys/windows/c/windows_sys.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/library/std/src/sys/windows/c/windows_sys.rs b/library/std/src/sys/windows/c/windows_sys.rs index 8c8b006a1d3..d3ecd70dc38 100644 --- a/library/std/src/sys/windows/c/windows_sys.rs +++ b/library/std/src/sys/windows/c/windows_sys.rs @@ -4275,3 +4275,20 @@ impl ::core::clone::Clone for XSAVE_FORMAT { *self } } +// Begin of ARM32 shim +cfg_if::cfg_if! { +if #[cfg(target_arch = "arm")] { +#[repr(C)] +pub struct WSADATA { + pub wVersion: u16, + pub wHighVersion: u16, + pub szDescription: [u8; 257], + pub szSystemStatus: [u8; 129], + pub iMaxSockets: u16, + pub iMaxUdpDg: u16, + pub lpVendorInfo: PSTR, +} +pub enum CONTEXT {} +} +} +// End of ARM32 shim |
