Skip to content

Commit edc68b1

Browse files
committed
Normalize output on macOS as well
1 parent ade3a5a commit edc68b1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎cpp2rust/converter/converter.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2567,7 +2567,8 @@ replaceNonUniformLibcField(clang::MemberExpr *expr) {
25672567
const char *replacement;
25682568
};
25692569
static constexpr Mapping kFields[] = {
2570-
{"stat", "st_mtim", "tv_sec", "st_mtime"},
2570+
{"stat", "st_mtim", "tv_sec", "st_mtime"}, // Linux
2571+
{"stat", "st_mtimespec", "tv_sec", "st_mtime"}, // macOS
25712572
};
25722573

25732574
auto getNamedIdentifierOrNull = [](auto *decl) {

0 commit comments

Comments
 (0)