Don't add "struct" to "DIR" or "fd_set".
This commit is contained in:
parent
30ed9835ed
commit
49c0dc98d0
|
@ -1906,7 +1906,7 @@ fn test_wasi(target: &str) {
|
|||
}
|
||||
|
||||
cfg.type_name(move |ty, is_struct, is_union| match ty {
|
||||
"FILE" => ty.to_string(),
|
||||
"FILE" | "fd_set" | "DIR" => ty.to_string(),
|
||||
t if is_union => format!("union {}", t),
|
||||
t if t.starts_with("__wasi") && t.ends_with("_u") => {
|
||||
format!("union {}", t)
|
||||
|
|
Loading…
Reference in New Issue