On windows `stat::st_mode` https://github.com/rust-lang/libc/blob/bac14427831aaff9b79dcdd125c03109414215c5/src/windows/mod.rs#L60 and `S_IFMT` (and other mode flags) https://github.com/rust-lang/libc/blob/bac14427831aaff9b79dcdd125c03109414215c5/src/windows/mod.rs#L146 are of different type, resulting in code like ``` fn is_regular(stat: &libc::stat) -> bool { stat.st_mode & libc::S_IFMT == libc::S_IFREG } ``` to not be portable.
On windows
stat::st_modelibc/src/windows/mod.rs
Line 60 in bac1442
S_IFMT(and other mode flags)libc/src/windows/mod.rs
Line 146 in bac1442
to not be portable.