mirror of
https://github.com/ziglang/zig.git
synced 2025-02-09 14:10:21 +00:00
Add a comment to explain the alignment directive
This commit is contained in:
parent
9e67c062c4
commit
90a54f06e5
@ -501,6 +501,8 @@ pub const Dir = struct {
|
||||
},
|
||||
.linux => struct {
|
||||
dir: Dir,
|
||||
// The if guard is solely there to prevent compile errors from missing `os.linux.dirent64`
|
||||
// definition when compiling for other OSes. It doesn't do anything when compiling for Linux.
|
||||
buf: [8192]u8 align(if (builtin.os.tag != .linux) 1 else @alignOf(os.linux.dirent64)),
|
||||
index: usize,
|
||||
end_index: usize,
|
||||
|
Loading…
Reference in New Issue
Block a user