Skip to content

Commit 47a12a4

Browse files
committed
transpile: add cases for macOS header locations
1 parent 5373871 commit 47a12a4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

c2rust-transpile/src/c_ast/conversion.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2003,6 +2003,12 @@ impl ConversionContext {
20032003
.to_str()
20042004
.map(|s| s.starts_with("__stddef_"))
20052005
.unwrap_or(false)
2006+
// darwin-xnu
2007+
|| filename == "_types.h"
2008+
|| filename
2009+
.to_str()
2010+
.map(|s| s.starts_with("_int") || s.starts_with("_u_int"))
2011+
.unwrap_or(false)
20062012
{
20072013
typ = id_for_name(&*name).unwrap_or(typ);
20082014
}

0 commit comments

Comments
 (0)