We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47a12a4 commit e218703Copy full SHA for e218703
c2rust-transpile/src/c_ast/conversion.rs
@@ -1980,6 +1980,11 @@ impl ConversionContext {
1980
"__int32_t" => CTypeKind::Int32,
1981
"__int64_t" => CTypeKind::Int64,
1982
"__int128_t" => CTypeKind::Int128,
1983
+ // on darwin, stdint.h typedefs uintN_t from u_intN_t:
1984
+ "u_int8_t" => CTypeKind::UInt8,
1985
+ "u_int16_t" => CTypeKind::UInt16,
1986
+ "u_int32_t" => CTypeKind::UInt32,
1987
+ "u_int64_t" => CTypeKind::UInt64,
1988
_ => {
1989
eprintln!("Unknown fixed-size type typedef {name}!");
1990
return None;
0 commit comments