Commit 49c0dc98 authored by Dan Gohman's avatar Dan Gohman

Don't add "struct" to "DIR" or "fd_set".

parent 30ed9835
...@@ -1906,7 +1906,7 @@ fn test_wasi(target: &str) { ...@@ -1906,7 +1906,7 @@ fn test_wasi(target: &str) {
} }
cfg.type_name(move |ty, is_struct, is_union| match ty { 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 is_union => format!("union {}", t),
t if t.starts_with("__wasi") && t.ends_with("_u") => { t if t.starts_with("__wasi") && t.ends_with("_u") => {
format!("union {}", t) format!("union {}", t)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment