diff --git a/crates/pyrowave-sys/build.rs b/crates/pyrowave-sys/build.rs index c2454b20..83b35fb9 100644 --- a/crates/pyrowave-sys/build.rs +++ b/crates/pyrowave-sys/build.rs @@ -84,6 +84,10 @@ fn main() { println!("cargo:rustc-link-lib=dylib=dl"); println!("cargo:rustc-link-lib=dylib=pthread"); } + if target_os == "windows" { + // Granite's breadcrumbs tracker raises a MessageBoxA on device hang. + println!("cargo:rustc-link-lib=dylib=user32"); + } let bindings = bindgen::Builder::default() .header("wrapper.h")