diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2023-06-24 17:30:27 +0100 |
|---|---|---|
| committer | Chris Denton <chris@chrisdenton.dev> | 2023-06-24 17:30:27 +0100 |
| commit | 8a7399cd45911e495260886ee96b0e50408adb59 (patch) | |
| tree | 854e9238552f3214dd669d2b5b88b71ed74b1133 /src/tools/generate-windows-sys | |
| parent | ed1ce580ec27ffcfda1a95512e69185442f75ebe (diff) | |
| download | rust-8a7399cd45911e495260886ee96b0e50408adb59.tar.gz rust-8a7399cd45911e495260886ee96b0e50408adb59.zip | |
Move arm32 shim to c.rs
Diffstat (limited to 'src/tools/generate-windows-sys')
| -rw-r--r-- | src/tools/generate-windows-sys/src/arm_shim.rs | 20 | ||||
| -rw-r--r-- | src/tools/generate-windows-sys/src/main.rs | 4 |
2 files changed, 0 insertions, 24 deletions
diff --git a/src/tools/generate-windows-sys/src/arm_shim.rs b/src/tools/generate-windows-sys/src/arm_shim.rs deleted file mode 100644 index 17c2ccb223c..00000000000 --- a/src/tools/generate-windows-sys/src/arm_shim.rs +++ /dev/null @@ -1,20 +0,0 @@ -// Begin of ARM32 shim -// The raw content of this file should be processed by `generate-windows-sys` -// to be merged with the generated binding. It is not supposed to be used as -// a normal Rust module. -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 diff --git a/src/tools/generate-windows-sys/src/main.rs b/src/tools/generate-windows-sys/src/main.rs index 65e480715ee..91d981462e8 100644 --- a/src/tools/generate-windows-sys/src/main.rs +++ b/src/tools/generate-windows-sys/src/main.rs @@ -11,9 +11,6 @@ const PRELUDE: &str = r#"// This file is autogenerated. // ignore-tidy-filelength "#; -/// This is a shim for the ARM (32-bit) architecture, which is no longer supported by windows-rs. -const ARM_SHIM: &str = include_str!("arm_shim.rs"); - fn main() -> io::Result<()> { let mut path: PathBuf = std::env::args_os().nth(1).expect("a path to the rust repository is required").into(); @@ -35,7 +32,6 @@ fn main() -> io::Result<()> { let mut f = std::fs::File::create(&path)?; f.write_all(PRELUDE.as_bytes())?; f.write_all(bindings.as_bytes())?; - f.write_all(ARM_SHIM.as_bytes())?; Ok(()) } |
