We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 510aab2 commit 90f769eCopy full SHA for 90f769e
crates/gen/src/types/function.rs
@@ -51,7 +51,7 @@ impl Function {
51
link = "onecoreuap";
52
}
53
54
- let body = if cfg!(windows) {
+ let body = if std::env::var("CARGO_CFG_WINDOWS").is_ok() {
55
if signature.has_query_interface() {
56
let leading_params = &signature.params[..signature.params.len() - 2];
57
let args = leading_params.iter().map(|p| p.gen_win32_abi_arg());
0 commit comments