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:
ospab 2026-05-15 00:46:48 +03:00
parent 32ce5de107
commit d328222f1b
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}