mirror of https://github.com/ospab/ostp.git
Fix: Explicitly link user32.lib and kernel32.lib inside runner.rs to resolve indirect ShowWindow unresolved external MSVC linker regression.
This commit is contained in:
parent
32ce5de107
commit
d328222f1b
|
|
@ -8,9 +8,15 @@ use crate::tunnel;
|
|||
use std::sync::Arc;
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
#[link(name = "kernel32")]
|
||||
extern "system" {
|
||||
fn FreeConsole() -> i32;
|
||||
fn GetConsoleWindow() -> *mut std::ffi::c_void;
|
||||
}
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
#[link(name = "user32")]
|
||||
extern "system" {
|
||||
fn ShowWindow(hwnd: *mut std::ffi::c_void, cmd_show: i32) -> i32;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue