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 3056379Copy full SHA for 3056379
c2rust-transpile/src/c_ast/conversion.rs
@@ -1980,6 +1980,15 @@ impl ConversionContext {
1980
"__int32_t" => CTypeKind::Int32,
1981
"__int64_t" => CTypeKind::Int64,
1982
"__int128_t" => CTypeKind::Int128,
1983
+ // macOS stdint.h typedefs [u]intN_t directly:
1984
+ "int8_t" => CTypeKind::Int8,
1985
+ "int16_t" => CTypeKind::Int16,
1986
+ "int32_t" => CTypeKind::Int32,
1987
+ "int64_t" => CTypeKind::Int64,
1988
+ "uint8_t" => CTypeKind::UInt8,
1989
+ "uint16_t" => CTypeKind::UInt16,
1990
+ "uint32_t" => CTypeKind::UInt32,
1991
+ "uint64_t" => CTypeKind::UInt64,
1992
_ => {
1993
eprintln!("Unknown fixed-size type typedef {name}!");
1994
return None;
0 commit comments