增加easytier_ffi对Windows7的兼容 (#2458)

This commit is contained in:
zyflypzlc
2026-07-30 20:32:08 +08:00
committed by GitHub
parent d55e63b88e
commit 4923a13c5d
2 changed files with 14 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
fn main() {
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();
let target_arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap_or_default();
if target_os == "windows" && (target_arch == "x86" || target_arch == "x86_64") {
thunk::thunk();
}
}