mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Align the dirent struct for linux
This commit is contained in:
@@ -203,11 +203,11 @@ when ODIN_OS == .Darwin {
|
|||||||
} else when ODIN_OS == .Linux {
|
} else when ODIN_OS == .Linux {
|
||||||
|
|
||||||
dirent :: struct {
|
dirent :: struct {
|
||||||
d_ino: u64, /* [PSX] file number of entry */
|
d_ino: u64, /* [PSX] file number of entry */
|
||||||
d_off: i64, /* directory offset of the next entry */
|
d_off: i64, /* directory offset of the next entry */
|
||||||
d_reclen: u16, /* length of this record */
|
d_reclen: u16, /* length of this record */
|
||||||
d_type: D_Type, /* file type */
|
d_type: D_Type, /* file type */
|
||||||
d_name: [256]c.char `fmt:"s,0"`, /* [PSX] entry name */
|
d_name: [256]c.char `fmt:"s,0"`, /* [PSX] entry name */
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user